//设置是否调试模式
#define WXDEBUG 0
#if WXDEBUG
#define WXLog(xx, ...) NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define WXLog(xx, ...) ((void)0)
#endif // #ifdef DEBUG
#endif
大为哥 18:31:51
#define WXDEBUG 0
#if WXDEBUG
#define WXLog(xx, ...) NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define WXLog(xx, ...) ((void)0)
#endif // #ifdef DEBUG
#endif
大为哥 18:31:51
使用: WXLog(@"test");
本文详细介绍了如何在调试模式下使用WXLog函数进行日志输出,包括定义调试模式、函数定义及实际应用示例。
2886

被折叠的 条评论
为什么被折叠?



