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

definition of TRACE macro More...

#include "dprintf.h"

Go to the source code of this file.

Detailed Description

definition of TRACE macro

Usage:

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

If _TRACE symbol is defined, the macro produces a printf-like string on the debug output.

Otherwise TRACE has no effect and is optimized out of existence.

There are 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.