一般我们都是进行一个宏定义的判断,如下 #ifndef A ... #endif 现在想同时判断两个宏定义,可以使用下面的表达方法 #if (!define A) || (define B) ... #endif