#error //用于在编译阶段抛出错误信息,适合检查程序员在预处理阶段的限制不一致或者违规行为。 比如 #if defined(DEBUG) && define(NO_DEBUG) #error DEBUG and NO_DEBUG all defined! #endif