Controls whether or not to perform SOM environment checking.
Compatibility:This pragma is compatible with the following platform targets:
|
68K
|
NEC V800
|
Intel x86
|
MIPS
|
Embedded 68K
|
#pragma SOMCheckEnvironment on | off | reset
Remarks:This pragma is only available for Mac OS using C++ code.
For example, the compiler transforms this IDL method call:
SOMobj->func(&env, arg1, arg2) ;
into something that is equivalent to this:
( temp=SOMobj->func(&env, arg1, arg2), __som_check_ev(&env), temp ) ;
And, the compiler transforms this new allocation:
new SOMclass;
into something that is equivalent to this:
( temp=new SOMclass, __som_check_new(temp), temp);
The PowerPC compiler uses an optimized error check that is smaller but slightly slower than the one given above. To use the error check show above in PowerPC code, use the pragma SOM-Call-Optimization, described in "SOM-Call-Optimization."
This pragma is ignored if the direct_to_SOM pragma, described in Targeting Mac OS is off.
This pragma corresponds to the Direct to SOM menu in the C/C++ Language Panel. Selecting On with Environment Checks from that menu is like setting this pragma to on. Selecting anything else from that menu is like setting this pragma to off. To check whether this option is on, use __option (RTTI), described in "Checking Options." By default, this pragma is on.