00001 #ifndef DEBUG_H
00002 #define DEBUG_H
00003
00004 int jam_debug_( int level, const char*const format, ... ) ;
00005 int is_level_set( int level, const char*const format, ... ) ;
00006
00007 #if !defined jam_debug
00008 #define jam_debug(a) \
00009 if( 0!= ( is_level_seta ) ) {\
00010 printf("%s:%i:%s()\t",__FILE__, __LINE__, __FUNCTION__); \
00011 jam_debug_a ;\
00012 printf("\n"); }
00013 #endif
00014
00015
00016 # define DEBUG_MAX 19
00017
00018 # define DEBUG_MAKE ( globs.debug[ 1 ] )
00019 # define DEBUG_MAKEQ ( globs.debug[ 2 ] )
00020 # define DEBUG_MAKEPROG ( globs.debug[ 3 ] )
00021 # define DEBUG_EXECCMD ( globs.debug[ 4 ] )
00022 # define DEBUG_EXEC ( globs.debug[ 5 ] )
00023 # define DEBUG_COMPILE ( globs.debug[ 6 ] )
00024 # define DEBUG_HEADER ( globs.debug[ 7 ] )
00025 # define DEBUG_BINDSCAN ( globs.debug[ 8 ] )
00026 # define DEBUG_SEARCH ( globs.debug[ 9 ] )
00027 # define DEBUG_VARSET ( globs.debug[ 10] )
00028 # define DEBUG_VARGET ( globs.debug[ 11] )
00029 # define DEBUG_VAREXP ( globs.debug[ 12] )
00030 # define DEBUG_IF ( globs.debug[ 13] )
00031 # define DEBUG_LISTS ( globs.debug[ 14] )
00032 # define DEBUG_SCAN ( globs.debug[ 15] )
00033 # define DEBUG_MEM ( globs.debug[ 16] )
00034 # define DEBUG_DEPENDS ( globs.debug[ 17] )
00035 # define DEBUG_CAUSES ( globs.debug[ 18] )
00036 #endif