debug.H File Reference

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.


Detailed Description


Define Documentation

#define DebugPrintf n,
 )     (((n) <= debug_level) ? printf s :0)
 

Debugging messages that the user can control. Disappear when compiling for optimization.

#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 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++.

http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/Variable-Attributes.html


Variable Documentation

const int ALWAYS = 0
 

Hint: if you use always, it won't work without -g. FIX: still true?

const int BOMBASTIC = 20
 

Major spew... when life sucks.

int debug_level
 

The main program needs to define this as a non-extern.

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.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6