I know about and have used the macros DEBUGMSG
, RETAILMSG
, ERRORMSG
, that all take a condition parameter. For general formatted debug output, though, I want to use ::NKDbgPrintfW
directly and wonder if someone knows if it compiles to a nop in optimised release builds or if my own macro wrapper around it with #ifdef DEBUG
is still needed?
Will NKDbgPrintfW be compiled to nop in release build?
419 Views Asked by Johann Gerell At
2
There are 2 best solutions below
0

I think you still need the #ifedf
statement.
Isn't this something you can easily test? You can make your optimized build and set the flag to generate the COD
files and then see how the call was translated.
Yep, you need the
#ifedf