Changeset 22852 for v6

Show
Ignore:
Timestamp:
11/02/08 00:10:12 (2 months ago)
Author:
pmurias
Message:

[smop] better NULL found messages

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/include/smop_base.h

    r22719 r22852  
    8484          identifier, capture \ 
    8585      ));\ 
    86       assert(ret);\ 
     86      if (!ret) {\ 
     87        char* id = ((SMOP__ResponderInterface*)object)->id;\ 
     88        if (identifier->RI == SMOP__ID__DESTROYALL->RI) {\ 
     89            int identifier_size;\ 
     90            char* s = SMOP__NATIVE__idconst_fetch(identifier,&identifier_size);\ 
     91            fprintf(stderr,"a NULL from method \"%.*s\" RI:%s is spotted %s:%d\n",identifier_size,s,id,__FILE__,__LINE__);\ 
     92        } else {\ 
     93            fprintf(stderr,"a NULL from nonconstant identifier method RI:%s is spotted %s:%d\n",id,__FILE__,__LINE__);\ 
     94        }\ 
     95      }\ 
    8796      ret;\ 
    8897      })