Viktor Apoyan
Viktor Apoyan

Reputation: 10755

Macros for Debug and Release modes

I am writing application on C++ .NET in Visual Studio 2008. I want to ask if there is standard macros to know if application is in Debug or Release mode.

For example I want to write something like this:

#ifdef DEBUG
System::Windows::Forms::MessageBox::Show("Debuge Mode")
#endif

Upvotes: 0

Views: 483

Answers (1)

Puppy
Puppy

Reputation: 146968

Visual Studio predefines _DEBUG as the debug macro.

Upvotes: 3

Related Questions