Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个编译器标志来禁用#warning调试目标中的 GCC 指令,而不是发布目标。有谁知道这样做的方法?
#warning
您可以为发布版本定义 NDEBUG 并使 #warning 以此为条件?