編譯器錯誤 C2490

不允許在具有 'naked' 屬性的函式中使用 'keyword'

定義成 naked 的函式不能使用結構化例外狀況處理 (Structured Exception Handling)。

下列範例會產生 C2490:

// C2490.cpp
// processor: x86
__declspec( naked ) int func() {
   __try{}   // C2490, structured exception handling
}