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