共用方式為


編譯器錯誤 C2488

'identifier' : 'naked' 只能套用至非成員函式定義

備註

體屬性已套用至函式宣告。

Example

下列範例會產生 C2488:

// C2488.cpp
// compile with: /c
// processor: x86
__declspec( naked ) void func();   // C2488  declaration, not definition
__declspec( naked ) void i;   // C2488  i is not a function

__declspec( naked ) void func() {}   // OK