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


SOMCallStyle

Description:

Specifies the convention used to call SOM objects.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800
Intel x86
MIPS
Embedded 68K

Prototype:
  #pragma SOMCallStyle OIDL | IDL Remarks:

This pragma is only available for Mac OS using C++ code.

The SOMCallStyle pragma chooses between two SOM call styles:

If a class uses the IDL style, its methods must have an Environment pointer as the first parameter. Note that the SOMClass and SOMObject classes use OIDL, so if you override a method from one of them, you should not include the Environment pointer.

This pragma is ignored if the direct_to_SOM pragma, described in Targeting Mac OS, is off.

This pragma does not correspond to an option in any settings panel. To check whether this option is on, use __option (SOMCheckEnvironment). See "Checking Options." By default, this pragma is set to IDL.


[ 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