Jump to content

SOM CreateLocalEnvironment: Difference between revisions

From EDM2
Created page with "This macro creates and initializes a local Environment structure. -- ==Syntax== <PRE> Environment *rc; rc = SOM_CreateLocalEnvironment Macro(); </PRE> ==Parameters== =..."
(No difference)

Revision as of 18:59, 10 October 2017

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