Jump to content

SOM CreateLocalEnvironment

From EDM2
Revision as of 19:01, 10 October 2017 by Martini (talk | contribs)

This macro creates and initializes a local Environment structure.

Syntax

Environment     *rc;
rc = SOM_CreateLocalEnvironment Macro();

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