Which preprocessor define should be used to specify debug sections of code?
Visual Studio defines
_DEBUG when you specify the
NDEBUG disables standard-C assertions. Use them when appropriate, ie
_DEBUG if you want your debugging code to be consistent with the MS CRT debugging techniques and
NDEBUG if you want to be consistent with
If you define your own debugging macros (and you don't hack the compiler or C runtime), avoid starting names with an underscore, as these are reserved.