How to write debug-only code in MFC vs2005

I want to define some member variable and some code only in debug mode, When switching to release mode, they will not show up.

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

My question is, is there a handy macro provided by MFC for this.

0
macros debugging mfc


source to share


1 answer


#ifdef _DEBUG

      



Visual Studio defines the _DEBUG macro when building your app's debugging flavor.

+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics