Project Homepage | Sourceforge Page | CVS Repository | Freshmeat.net Page | Download project | Author's Homepage |
These macros are here for convenience. Mostly I use this kind of stuff for light debug work here and there. Please feel free to steal what you need and use it as your own -parasyte.
Definition in file debug.h.
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Debugging statments | |
These macros print statements to the command line when run-free is compiled with the --enable-debug=yes directive from configure | |
#define | dprint(string) dprint_s1(string) |
print a string in debug mode -a convenience function | |
#define | dprint_s1(string) if(DEBUG_MODE) g_print(""DEBUG_PREMSG" "DEBUG_SUBMSG"(%s)\n", string) |
single string printing | |
#define | dprint_s2(string1, string2) if(DEBUG_MODE) g_print(""DEBUG_PREMSG" "DEBUG_SUBMSG"(%s:%s)\n", string1, string2) |
double string printing | |
#define | dprint_f1(format, data) if(DEBUG_MODE) g_print(""DEBUG_PREMSG" "DEBUG_SUBMSG"("format")\n", data) |
single format debugging from gprint | |
#define | dprint_f2(format1, format2, data1, data2) if(DEBUG_MODE) g_print(""DEBUG_PREMSG" "DEBUG_SUBMSG"("format1":"format2")\n", data1, data2) |
double format debugging from gprint | |
Defines | |
#define | DEBUG_MODE 0 |
compile time option | |
#define | DEBUG_PREMSG PACKAGE |
The package name. | |
#define | DEBUG_SUBMSG "DEBUG" |
a submessage |
|
compile time option run-free DEBUGING STATEMENTS.
These would be called in the following ways:
This would be the output (assuming PACKAGE is defined as "run-free"): Definition at line 60 of file debug.h. Referenced by main(). |
|
The package name.
|
|
a submessage
|
|
print a string in debug mode -a convenience function
Definition at line 75 of file debug.h. Referenced by main(), and readHistory(). |
|
single format debugging from gprint
|
|
double format debugging from gprint
|
|
single string printing
|
|
double string printing
Definition at line 79 of file debug.h. Referenced by main(). |