views:

137

answers:

1

I want to define some member variable and some code just in Debug Mode, When change to Release mode, they will not appear.

I know I can use #ifdef xxx to do this task.

My question is : is there any handy macro provided by MFC to do this.

+2  A: 
#ifdef _DEBUG

Visual Studio defines the _DEBUG macro when building Debug flavor of your application.

Franci Penov