debug.h

Go to the documentation of this file.
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 ] )    /* -da show actions when executed(the default) */
00019 # define DEBUG_MAKEQ    ( globs.debug[ 2 ] )    /* -da show even quiet actions */
00020 # define DEBUG_MAKEPROG ( globs.debug[ 3 ] )    /* -dm show progress of make0 */
00021 # define DEBUG_EXECCMD  ( globs.debug[ 4 ] )    /* show execcmds()'s work */
00022 # define DEBUG_EXEC     ( globs.debug[ 5 ] )    /* -dx show text of actions */
00023 # define DEBUG_COMPILE  ( globs.debug[ 6 ] )    /* show rule invocations */
00024 # define DEBUG_HEADER   ( globs.debug[ 7 ] )    /* show result of header scan */
00025 # define DEBUG_BINDSCAN ( globs.debug[ 8 ] )    /* show result of dir scan */
00026 # define DEBUG_SEARCH   ( globs.debug[ 9 ] )    /* show attempts at binding */
00027 # define DEBUG_VARSET   ( globs.debug[ 10] )    /* show variable settings */
00028 # define DEBUG_VARGET   ( globs.debug[ 11] )    /* show variable fetches */
00029 # define DEBUG_VAREXP   ( globs.debug[ 12] )    /* show variable expansions */
00030 # define DEBUG_IF       ( globs.debug[ 13] )    /* show 'if' calculations */
00031 # define DEBUG_LISTS    ( globs.debug[ 14] )    /* show list manipulation */
00032 # define DEBUG_SCAN     ( globs.debug[ 15] )    /* show scanner tokens */
00033 # define DEBUG_MEM      ( globs.debug[ 16] )    /* show memory use */
00034 # define DEBUG_DEPENDS  ( globs.debug[ 17] )   /* -dd show dependency graph */
00035 # define DEBUG_CAUSES   ( globs.debug[ 18] )   /* -dc show dependency graph */
00036 #endif

Generated on Thu Aug 17 15:54:32 2006 for MaJam by  doxygen 1.4.7