Jump to content

SOM_CreateLocalEnvironment

From EDM2

This macro creates and initializes a local Environment structure.

Syntax

Environment     *rc;
rc = SOM_CreateLocalEnvironment ();

Parameters

Return Code

rc (Environment *)

Remarks

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 *).

Example Code

Environment *ev;
ev = SOM_CreateLocalEnvironment();
_myMethod(obj, ev);
...
SOM_DestroyLocalEnvironment(ev);

Related

Data Structures
  • Environment (somcorba.h)
Macros
  • SOM_DestroyLocalEnvironment
  • SOM_InitEnvironment
  • SOM_UninitEnvironment
Functions
  • somGetGlobalEnvironmen