-qeh (C++ only)

Category

Object code control

Pragma equivalent

None.

Purpose

Controls whether exception handling is enabled in the module being compiled.

When -qeh is in effect, exception handling is enabled. If your program does not use C++ structured exception handling, you can compile with -qnoeh to prevent generation of code that is not needed by your application.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-eh--+-----------+-.   
        |     |    .-v6-. | |   
        |     '-=--+-v5-+-' |   
>>- -q--+-noeh--------------+----------------------------------><

Defaults

-qeh=v6

Parameters

v6
Generates exception handling code, compatible with VisualAge® C++ V6.0, that correctly handles try-catch blocks nested within other catch blocks.
v5
Generate exception handling code that is compatible with VisualAge C++ V5.0.
Specifying -qeh with no suboption is equivalent to -qeh=v6.

Predefined macros

__EXCEPTIONS is predefined to 1 when -qeh is in effect; otherwise, it is undefined.

Related information