Compiler Error C2490
'keyword' not allowed in function with 'naked' attribute
A function defined as naked cannot use structured exception handling.
The following sample generates C2490:
// C2490.cpp
// processor: x86
__declspec( naked ) int func() {
__try{} // C2490, structured exception handling
}
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