A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

© yyyyyyyyqs 中级黑马   /  2015-7-2 00:39  /  799 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

#define DEBUG1 1

#if DEBUG1 ==1
//显示调试信息
#define Log(format,...) printf(format,## __VA_ARGS)

#else
//不显示调试信息

#define Log(format,...)

#endif

int main(int argc,const char * argv[]){

    //DEBUG ==1  显示调试信息
    //DEBUG ==0  不显示调试信息
    Log("xxxxxxxxxxxxxx-->%d\n",10);
    reyurn 0;
}


//打印结果:  xxxxxxxxxxxxxx-->10
您需要登录后才可以回帖 登录 | 加入黑马