Compiler Error C2489
'identifier' : initialized auto or register variable not allowed at function scope in 'naked' function
For more information, see naked.
The following sample generates C2489:
// C2489.cpp
// processor: x86
__declspec( naked ) int func() {
int i = 1; // C2489
register int j = 1; // C2489
}
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