测试让NSLog失效

来源:互联网 发布:python logger format 编辑:程序博客网 时间:2024/05/16 11:14
////  PrefixHeader.pch//  小技巧#ifndef ____PrefixHeader_pch#define ____PrefixHeader_pch// Include any system framework and library headers here that should be included in all compilation units.// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.#define kDebugMethod NSLog(@"%s", __func__)//这个意思是公用的__func__当前所在函数名//#define __XXXX__ // 如果让NSLog失效,写上这行代码,定义了#ifndef __XXXX__//如果没有定义就#define NSLog(...) NSLog(__VA_ARGS__)//原型输出,即NSLog有效#else//#define NSLog(...)//输出为空#endif#endif
0 0
原创粉丝点击