OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The following program illustrates the use of the default TRACE and WARN macros:
When the above code is compiled with _ _TRACE and _ _WARN defined, it produces the following output when run:
The above output indicates that the message "Hello World" was output by the default TRACE macro on line 5 of PROG.C, and the message "Math still works!" was output by the default WARN macro on line 7 of PROG.C. Default diagnostic macros expand to extended diagnostic macros with the group set to "Def" and the level set to 0. This "Def" group controls the behavior of the default macros and is initially enabled with a threshold level of 0.