码迷,mamicode.com
首页 >  
搜索关键字:调试宏    ( 11个结果
C语言中的调试宏
#ifdef DEBUG #define debug_printf(fmt, ...) printf(fmt, ##__VA_ARGS__) #else #define debug_printf(fmt, ...) #endif 其中##在没有参数的时候去掉前面的","号,否则在没有参数的时候,编译会报错。 #include #ifdef DEBUG #define debug_prin...
分类:编程语言   时间:2014-09-10 14:17:00    阅读次数:200
11条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!