I want to check in C ++ 2010 if the build works like Debug or Release. Is there an easy way to check this?
Thanks.
VisualStudio generates _DEBUG and NDEBUG as define . You can check it at compile time.
_DEBUG
NDEBUG
define
#ifdef _DEBUG // THE CODE IS COMPILING IN DEBUG MODE. #endif