Header File <debugf.h>
The header file provides the following functionality:
- Macros
-
void debugf((
const char *format,
... ));
- Limitations
-
Due to the limited capabilities of the C preprocessor you have to
enclose the arguments in double parenthesis.
The output string is limited to 4096 characters.
- Missing
-
-
- Additions
-
This header file and the functionality it provides is an extension.
- Notes
-
This extension provides an easy way to send printf -style
formatted messages using OutputDebugString , while allowing
all code to be left out of a release build by defining
NDEBUGF .
As an example, the following line in function foobar in
the file foo.c at line 18:
debugf(("length is %u", length));
could produce the following message:
foo.c(18): foobar: length is 42
|