Will NKDbgPrintfW be compiled to nop in release build?

419 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

Yep, you need the #ifedf

0
On

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.