MLIB
Loading...
Searching...
No Matches
trace.h File Reference

Definition of trace debugging macros. More...

#include "dprintf.h"

Go to the source code of this file.

Macros

#define TRACE1   TRACE
 
#define TRACE2   TRACE
 
#define TRACE3   TRACE
 
#define TRACE4   TRACE
 
#define TRACE5   TRACE
 
#define TRACE6   TRACE
 
#define TRACE7   TRACE
 
#define TRACE8   TRACE
 
#define TRACE9   TRACE
 
#define TRACE   1 ? 0 : dprintf
 

Detailed Description

Definition of trace debugging macros.

(c) Mircea Neacsu 1999-2002. All rights reserved.

TRACE Usage: TRACE (fmt, arg1, arg2, ....);

If _TRACE symbol is defined the macro produces a printf-like string to the debug output. Otherwise TRACE has no effect.

There are also 9 additional macros TRACEx (where x is 1 to 9) that behave like TRACE if _TRACE_LEVEL is greater than x. The intended usage is to have very detailed trace information if _TRACE_LEVEL is high with diminishing amounts of information as _TRACE_LEVEL is lowered.