How to include traces in my C++ module?

TRACE_INIT
Used to read .flg file
to be called at the beginning of the main procedure, could also be
called periodically.

TRACE_ENTRY("procedure name")
to be called at the entry of procedures containing traces.
Nothing must be done on procedure exit, it is automatically performed
thanks to the C++ object destruction on procedure exit.

TRACE(comment)
Used to display a trace message.
The comment can be of any type for which the operator << on ostream&
is defined.
Several C++ objects can be separated by <<.
Examples: TRACE("info received"), TRACE("card=" << card << ",time=" << t);

TRACE_SHOW(var)
Used to display the value of a variable, equivalent to TRACE("var="<< var)

TRACE_DUMP(comment,address,length)
Used to display a memory dump

No comments:

Post a Comment