共用方式為


編譯器警告 (層級 1) C4117

巨集名稱 'name' 為保留字; 忽略 'Command'

透過檢查下列可能原因進行修正

  1. 嘗試定義或取消定義預先定義的巨集。

  2. 嘗試定義或取消定義前置處理器運算子 defined

下列範例會產生 C4117:

// C4117.cpp
// compile with: /W1
#define __FILE__ test         // C4117. __FILE__ is a predefined macro
#define ValidMacroName test   // ok

int main() {
}