swift 3.0 打印宏设置

来源:互联网 发布:网络上赌博输钱怎么办 编辑:程序博客网 时间:2024/05/16 14:53


//打印宏#if DEBUG    public let CHDebugLog = { (items: Any...) in        print(items)}#else    public let CHDebugLog = { (items: Any...) in        }#endif

在xcode中设置debug模式下开启打印宏,如下图