Will NKDbgPrintfW be compiled to nop in release build?
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?
Yep, you need the #ifedf
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.
精彩评论