func debugOnly(_ body: () -> Void) { assert({body(); return true}()) }
在需要跑在 debug 环境中的代码这么使用:
debugOnly { // your code }
我要举报该,理由是:
推荐文章: