Page 1 of 1
VisualC++: Debug / Release?
Posted: Wed Jun 15, 2005 11:36 am
by Solar
I know it's possible to determine whether my source is compiled with VisualC++ using
But is it possible to determine whether Visual is set to compile for Debug or Release?
I could use that for some NDEBUG trickery...
Re:VisualC++: Debug / Release?
Posted: Wed Jun 15, 2005 4:13 pm
by zloba
try looking in project settings, it should display compiler commandline switches (under "compiler options" or "C++ options" or somesuch)
i'm sure there is some #define, like DEBUG or some variation of underscores.
(IIRC, based on MSVS 6 i used long ago)
Re:VisualC++: Debug / Release?
Posted: Wed Jun 15, 2005 10:24 pm
by AR
This is for MSVC++6, I haven't bothered to reinstall MSVC++7 since I last reinstalled Windows, but it should work on that to.
Re:VisualC++: Debug / Release?
Posted: Wed Jun 15, 2005 10:38 pm
by Solar
Thanks!