findcheck.h

Go to the documentation of this file.
00001 #ifndef  __findcheck_h
00002 #define  __findcheck_h
00003 
00004 /*------------------------------------------*/
00005 
00006 #define FindMacro(where,message) \
00007     { CHashIt ip = ##where .find(i); \
00008        if(ip==##where .end()) { \
00009           std::string s = "##message ";\
00010           cerr << "Index::" << s << " g2l()\n";\
00011           cerr << "there is no " << s << " "<< i << std::endl;\
00012           assert(0);}\
00013       return ip->second; }
00014 
00015 #define CheckMacro(where) \
00016     { CHashIt ip = ##where .find(i);\
00017       if(ip==##where .end()) return -2;\
00018       return ip->second;}
00019 
00020 /*------------------------------------------*/
00021 
00022 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7