标签: preprocessor
当我同时定义两个指令时,如何进行编译错误? 我想要错误
#define ENG #define POL #if defined POL #if defined ENG
这里不是
#define ENG //#define POL #if defined POL #if defined ENG
答案 0 :(得分:8)
#if defined( ENG ) && defined( POL ) #error You can't define both! #endif