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