通过makefile 传入宏定义参数DEBUG,打印函数如下:
#ifndef DEBUG
#define debugprint(format, ...)
{
printf( (char*)format, ##__VA_ARGS__);
}
#else
#define debugprint(format, ...)
#endif
使用方法如下:
debugprint("hello world ");
最后
以上就是快乐睫毛最近收集整理的关于Debug版本和release版本的用法的全部内容,更多相关Debug版本和release版本内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复