CACAO
Macros
Debug.hpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_COND_WITH_NAME_N(DBG_NAME, VERBOSE)   false
 
#define DEBUG_WITH_NAME_N(DBG_NAME, VERBOSE, STMT)   do { } while(0)
 
#define DEBUG_COND_WITH_NAME(DBG_NAME)   DEBUG_COND_WITH_NAME_N(DBG_NAME,0)
 
#define DEBUG_COND_N(VERBOSE)   DEBUG_COND_WITH_NAME_N(DEBUG_NAME,VERBOSE)
 
#define DEBUG_COND   DEBUG_COND_N(0)
 
#define DEBUG_WITH_NAME(DBG_NAME, STMT)   DEBUG_WITH_NAME_N(DBG_NAME,0, STMT)
 
#define DEBUG_N(VERBOSE, STMT)   DEBUG_WITH_NAME_N(DEBUG_NAME,VERBOSE, STMT)
 
#define DEBUG(STMT)   DEBUG_N(0, STMT)
 Execute debug statements in your current module. More...
 
#define DEBUG1(STMT)   DEBUG_N(1, STMT)
 
#define DEBUG2(STMT)   DEBUG_N(2, STMT)
 
#define DEBUG3(STMT)   DEBUG_N(3, STMT)
 

Macro Definition Documentation

#define DEBUG (   STMT)    DEBUG_N(0, STMT)

Execute debug statements in your current module.

To use this macro you must define the macro DEBUG_NAME to the name of your current module (should be a string literal. Never do this in a header (but if you do this, undef DEBUG_NAME at the end of the header)!

Definition at line 125 of file Debug.hpp.

#define DEBUG1 (   STMT)    DEBUG_N(1, STMT)

Definition at line 126 of file Debug.hpp.

#define DEBUG2 (   STMT)    DEBUG_N(2, STMT)

Definition at line 127 of file Debug.hpp.

#define DEBUG3 (   STMT)    DEBUG_N(3, STMT)

Definition at line 128 of file Debug.hpp.

#define DEBUG_COND   DEBUG_COND_N(0)

Definition at line 113 of file Debug.hpp.

#define DEBUG_COND_N (   VERBOSE)    DEBUG_COND_WITH_NAME_N(DEBUG_NAME,VERBOSE)

Definition at line 112 of file Debug.hpp.

#define DEBUG_COND_WITH_NAME (   DBG_NAME)    DEBUG_COND_WITH_NAME_N(DBG_NAME,0)

Definition at line 111 of file Debug.hpp.

#define DEBUG_COND_WITH_NAME_N (   DBG_NAME,
  VERBOSE 
)    false

Definition at line 105 of file Debug.hpp.

#define DEBUG_N (   VERBOSE,
  STMT 
)    DEBUG_WITH_NAME_N(DEBUG_NAME,VERBOSE, STMT)

Definition at line 116 of file Debug.hpp.

#define DEBUG_WITH_NAME (   DBG_NAME,
  STMT 
)    DEBUG_WITH_NAME_N(DBG_NAME,0, STMT)

Definition at line 115 of file Debug.hpp.

#define DEBUG_WITH_NAME_N (   DBG_NAME,
  VERBOSE,
  STMT 
)    do { } while(0)

Definition at line 106 of file Debug.hpp.