1-52 SOMobjects Base Toolkit: Programmer’s Reference Manual
SOM_CreateLocalEnvironment Macro
Purpose
Creates and initializes a local Environment structure.
Syntax
Environment * SOM_CreateLocalEnvironment ( );
Description
The SOM_CreateLocalEnvironment macro creates a local Environment structure. This
Environment structure can be passed to methods as the Environment argument so that
exception information can be returned without affecting the global environment.
Expansion
The SOM_CreateLocalEnvironment expands to an expression of type (Environment *).
C Example
Environment *ev;
ev = SOM_CreateLocalEnvironment();
_myMethod(obj, ev);
...
SOM_DestroyLocalEnvironment(ev);
Related Information
Macros: SOM_DestroyLocalEnvironment, SOM_InitEnvironment,
SOM_UninitEnvironment
Data Structures: Environment (somcorba.h)
Functions: somGetGlobalEnvironment
Commenti su questo manuale