嚴重錯誤 C1022
需要對應的 #endif
#if
、 #ifdef
或 #ifndef
指示詞沒有相符的 #endif
指示詞。 每個 #if
、 #ifdef
或 #ifndef
務必要有相符的 #endif
。
下列範例會產生 C1022:
// C1022.cpp
#define true 1
#if (true)
#else
#else // C1022
可能的解決方式:
// C1022b.cpp
// compile with: /c
#define true 1
#if (true)
#else
#endif