Ste*_*ser 13
转到要测试的目标,然后构建设置并搜索预处理,您应该看到如下内容:

正如您所看到的,debug已经有了一个值.如果要检查发布版本,可以输入RELEASE = 1.然后在你的代码中放入if语句,如下所示:
#if DEBUG==1
// do debug build settings stuff there
#endif
#if RELEASE==1
// do release build settings stuff there
#endif
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1037 次 |
| 最近记录: |