JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

宏定义(Release/Debug)

发布时间 2023-09-20 17:13:50作者: iu本u
  • #define LOG(x) std::cout<<"Hello"<<std::endl;
  • 在项目属性的c++->Preprocesser(预处理)->Preprocesser Define中添加DR_MODULE,将configuration模式调为release
  • #ifdef DR_MODULE

   #define LOG(x) 

   #else

   #define LOG(x) std::cout<<"Hello"<<std::endl

      #endif

只有在DEBUG模式下才会打印日志

    本栏目推荐文章
  • android编译kanzi 问题 (3) Build command failed.ninja: error: '../../../../../../lib/android_gradle/ES3_Release/arm64-v8a/xxxxx.so', needed by 'xxxxxx.so', missing and no known rule to make it
  • KubeSphere实现金丝雀发布(Canary Release)
  • IntelliJ IDEA Debug模式下结束后继续执行代码问题
  • IDEA Debug 调试技巧(基础版)
  • Sermant重磅更新,1.3.0 release版本发布
  • 解决mac arm 中 goland 无法 debug 问题
  • 报错 To run and debug the Harmony device, configure the HarmonyOS runtime.
  • Jax框架 —— 如何在没有GPU和TPU的设备上debug代码 —— 在CPU上使用GPU仿真设置 —— Jax框架在多卡设备上的自动并行特性的仿真体验
  • 鸿蒙开发 ERROR: Failed to find the incremental input file: C:\Users\admin\.ohos\config\auto_debug_MyApplication2_com.example.myapplication2_2850086000448618441.cer.
  • [Debug Series] Don't capture reference unless it's transient
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们