有没有类似的方法来检查我是否处于像在Objective-C中那样的调试模式?
#ifdef DEBUG // ... #else // ... #endif
您可以测试应用程序是否在开发模式下运行:
if(__DEV__) { // do something... }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.