SOM Kernel Reference 1-53
SOM_DestroyLocalEnvironment Macro
Purpose
Destroys a local Environment structure.
Syntax
void SOM_DestroyLocalEnvironment (Environment * ev);
Description
The SOM_DestroyLocalEnvironment macro destroys a local Environment structure,
such as one created using the SOM_CreateLocalEnvironment macro.
Parameters
ev A pointer to the Environment structure to be discarded.
Expansion
The SOM_DestroyLocalEnvironment function first invokes the somExceptionFree
function on the Environment structure; then it invokes SOMFree on it to free the memory it
occupies.
Example
Environment *ev;
ev = SOM_CreateLocalEnvironment();
_myMethod(obj, ev);
....
SOM_DestroyLocalEnvironment(ev);
Related Information
Macros: SOM_CreateLocalEnvironment, SOM_UninitEnvironment
Functions: somExceptionFree
Kommentare zu diesen Handbüchern