Sdílet prostřednictvím


Chyba kompilátoru C2488

'identifier' : 'naked' can be applied only to non-member function definitions

Poznámky

Nahý atribut byl použit na deklaraci funkce.

Example

Následující příklad vygeneruje 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