码迷,mamicode.com
首页 > 编程语言 > 详细

vc++ release模式下不存_DEBUG宏定义的解决方案

时间:2014-08-16 17:04:20      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   ar   div   log   c++   ef   

1 #ifndef
2 #define _DEBUG 0
3 #endif
4 
5 #ifdef _DEBUG
6 #define trace(x) printf(x);
7 #else
8 #define trace(x) ;
9 #endif

 

#ifndef
#define _DEBUG 0
#endif

#ifdef _DEBUG
#define trace(x) printf(x);
#else
#define trace(x) ;
#endif

 

vc++ release模式下不存_DEBUG宏定义的解决方案,布布扣,bubuko.com

vc++ release模式下不存_DEBUG宏定义的解决方案

标签:style   blog   color   ar   div   log   c++   ef   

原文地址:http://www.cnblogs.com/kingboys/p/3916523.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!