exceptions

Set exception handling to use Microsoft-compatible exceptions or Carbide zero-overhead exceptions (default). Implies the use of pragma# -cpp_exceptions on.

Syntax

#pragma exc[eptions] mw | ms | sync | async

Targets
Intel x86
Remarks

This pragma emulates the /EHS option of MSVC. In this model, Win32 structured exception handling (SEH) is not caught by C++ catch(...) blocks.

This pragma corresponds to the C++ exception handling setting in the Microsoft Compatability group of the x86 CodeGen panel. To check this setting, use __option (exceptions), described in Checking Settings. By default, this pragma is on.