次の方法で共有


コンパイラ エラー C2488

'identifier': 'naked' はメンバーではない関数定義にのみ適用されます。

naked 属性が関数の宣言に適用されました。

次の例では警告 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