【发布时间】:2015-03-05 07:05:04
【问题描述】:
这样的调试宏应该放在哪里,我想把它当作gloabl使用。
#define DEBUG_MODE
#ifdef DEBUG_MODE
#define DebugLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#else
#define DebugLog( s, ... )
#endif
由于 prefix.pch 在 Xcode 6 中已被删除。
【问题讨论】:
-
如果你需要,创建一个单 pch 文件
标签: ios objective-c macros