SOM InitEnvironment

This macro initializes a local Environment structure.

Syntax
 Environment    *env; SOM_InitEnvironment(env); 

Parameters

 * env (Environment *) : A pointer to the Environment structure to be initialized.

Remarks
The SOM_InitEnvironment macro initializes a locally declared Environment structure. This Environment structure can then be passed to methods as the Environment argument so that exception information can be returned without affecting the global environment.

Expansion
The SOM_InitEnvironment initializes an Environment structure to zero.

Example Code
 Environment ev; SOM_InitEnvironment(&ev); _myMethod(obj, &ev); ... SOM_UninitEnvironment(&ev); 

Macros

 * SOM_DestroyLocalEnvironment
 * SOM_CreateLocalEnvironment
 * SOM_UninitEnvironment

Functions

 * somGetGlobalEnvironment