Share via


/EH - Exception Handling Model

This option specifies the model of exception handling to be used by the compiler.

/EH{s|a}[c][-]

The following table shows how to use the available options for /EH.

Switch Description
/EHs Specifies the synchronous exception-handling model.
/EHa Specifies the asynchronous exception-handling model.
/EHc Sets the compiler to assume that extern C functions never throw an exception. The /EHc option requires that /EHs, /EHa, or /GX - Enable Exception Handling is also specified.

The option can be cleared by the symbol "-". For example, /EHsc- is interpreted as /EHs /EHc-, and is equivalent to /EHs.

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.