### exceptions

Controls the support of C++ exception handling.

##### Syntax

#pragma exceptions on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, you can use the try and catch statements in C++ to perform exception handling. If your program does not use exception handling, disable this setting to make your program smaller.

You can throw exceptions across any code compiled by the Carbide C/C++ compiler with #pragma exceptions on. You cannot throw exceptions across libraries compiled with #pragma exceptions off. If you throw an exception across one of these, the code calls terminate() and exits.

This pragma corresponds to the Enable C++ Exceptions setting . To check this setting, use __option (exceptions), described in Checking Settings. The default setting is on.