Compiler Error C2486
'__LOCAL_SIZE' only allowed in function with the 'naked' attribute
In inline assembly functions, the name __LOCAL_SIZE
is reserved for functions declared with the naked attribute.
The following sample generates C2486:
// C2486.cpp
// processor: x86
void __declspec(naked) f1() {
__asm {
mov eax, __LOCAL_SIZE
}
}
void f2() {
__asm {
mov eax, __LOCAL_SIZE // C2486
}
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for