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.
在定义了 Release 和 Debug 符号时,是否有限制使用预处理指令来防止项目编译?
请告诉我。
见这里。据此,它也适用于 VC++。
假设 C/C++:
#if defined (Debug) && defined (Release) #error Debug and Release are both defined ! #endif