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


SOMClassVersion

Description:

Specifies a SOM class's version.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800
Intel x86
MIPS
Embedded 68K

Prototype:
  #pragma SOMClassVersion(class,majorVer,minorVer) Remarks:

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

SOM uses the class's version number to make sure the class is compatible with other software you're using. If you don't declare the version numbers, SOM assumes zeroes. The version numbers must be positive or zero.

When you define the class, the program passes its version number to the SOM kernel in the class's metadata. When you instantiate an object of the class, the program passes the version to the runtime kernel, which checks to make sure the class is compatible with the running software.

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.


[ 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