[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


exceptions

Description:

Controls the availability of C++ exception handling.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800

Intel x86

MIPS

Embedded 68K

Prototype:
  #pragma exceptions on | off | reset Remarks:

If you turn on this pragma, you can use the try and catch statements to perform exception handling. If your program doesn't use exception handling, turn this option off to make your program smaller.

You can throw exceptions across any code that's compiled by the CodeWarrior C/C++ compiler with the Enable C++ Exceptions option turned on. You cannot throw exceptions across the following:

If you throw an exception across one of these, the code calls terminate() and exits.

This pragma corresponds to the Enable C++ Exceptions option in the C/C++ Language Panel. To check whether this option is on, use __option (exceptions), described in "Checking Options."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000