宏开关程序

宏开关程序简单试例:
#include <stdio.h>
#define DEBUG
#ifdef DEBUG
#define DEBUG(…) printf(VA_ARGS)
#else
#define DEBUG(…)
#endif
int main()
{
char str[]=“Hello World”;
DEBUG(“A ha, check me: %s”,str);
return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_42736510/article/details/88054509
今日推荐