Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Examples

defs.h

00001 #ifndef __NJB__DEFS__H
00002 #define __NJB__DEFS__H
00003 
00004 /* Takes out GCC weirdness for other compilers */
00005 #ifndef __GNUC__
00006 #  define  __attribute__(x)  /*NOTHING*/
00007 #endif
00008 
00009 /* Macros for printing debug traces from subroutines */
00010 #define __dsub static char *subroutinename __attribute__((unused))
00011 #define __sub subroutinename
00012 #define __enter if(njb_debug(DD_SUBTRACE))fprintf(stderr,"%*s==> %s\n",3*__sub_depth++,"",__sub)
00013 #define __leave if(njb_debug(DD_SUBTRACE))fprintf(stderr,"%*s<== %s\n",3*(--__sub_depth),"",__sub)
00014 
00015 #endif

Generated on Thu Oct 20 20:35:58 2005 for libnjb by  doxygen 1.4.4