Pick one
#ifndef NDEBUG // or
#if !defined(NDEBUG) // or
#ifdef _DEBUG // or
#if defined(_DEBUG)
AFAIK NDEBUG
is defined in the ISO C++ standard (also used to enable/disable the standard library's assert
macro), whereas _DEBUG
is Microsoft-specific.
(Of course C++/CLI is not ISO C++, but in this case it doesn't make a difference)
pgroke
2010-09-28 20:37:20