Go to the source code of this file.
|
|
There are two cases:
- DEBUG is defined (before including this file). In that case, either DEBUG == 2 or not (typically, DEBUG == 1). In the former case a pause will be done by requesting an integer from console after each DEBUG(txt). In any case, defining DEBUG enables the use of the transient debugging macro, TRACE(txt). For transient, method-scope debugs, define at the beginning of the method a TRACE(txt) equal to TRACELOG(txt) and undefine it at the end of the method. Then use TRACE(txt) for the transient debug logs in the method. If you need finer traces (e.g., containing code), define your own macro in the routine and undefine it later, e.g., FINETRACE.
- DEBUG is not defined. In that case all these macros are defined to empty in order not to generate any code.
|
#define | DEBUGLOG(txt) |
|
#define | TRACELOG(txt) |
|