Go to the source code of this file.
Defines | |
#define | UNUSED |
Provide help for debugging and such. Provides macros for debug levels, regression testing, and suppression of warning for unused variables. GNU CC attribute to denote unused paramters in function calls. The attribute remove compiler warning for unused arguments and variable. Only works for GNU compilers such as gcc and g++. | |
#define | FAILED_HERE |
Use 'FAILED_HERE;' to emit a string that looks like a compiler warning Use this to allow emacs to jump to this source line with C-x `. | |
#define | DebugPrintf(n, s) (((n) <= debug_level) ? printf s :0) |
Debugging messages that the user can control. Disappear when compiling for optimization. | |
Variables | |
const int | ALWAYS = 0 |
Hint: if you use always, it won't work without -g. FIX: still true? | |
const int | TERSE = 1 |
Just the bare minimum. | |
const int | TRACE = 4 |
Trace major function calls, constructors, and methods. | |
const int | VERBOSE = 8 |
Lots and lots of junk. | |
const int | BOMBASTIC = 20 |
Major spew... when life sucks. | |
int | debug_level |
The main program needs to define this as a non-extern. |
|
Debugging messages that the user can control. Disappear when compiling for optimization.
|
|
Use 'FAILED_HERE;' to emit a string that looks like a compiler warning Use this to allow emacs to jump to this source line with C-x `.
|
|
Provide help for debugging and such. Provides macros for debug levels, regression testing, and suppression of warning for unused variables. GNU CC attribute to denote unused paramters in function calls. The attribute remove compiler warning for unused arguments and variable. Only works for GNU compilers such as gcc and g++. http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/Variable-Attributes.html |
|
Hint: if you use always, it won't work without -g. FIX: still true?
|
|
Major spew... when life sucks.
|
|
The main program needs to define this as a non-extern.
|
|
Just the bare minimum.
|
|
Trace major function calls, constructors, and methods.
|
|
Lots and lots of junk.
|