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== =..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This macro creates and initializes a local Environment structure.  
{{DISPLAYTITLE:SOM_CreateLocalEnvironment}}
This macro creates and initializes a local Environment structure.


--
==Syntax==
==Syntax==
<PRE>
Environment    *rc;
Environment    *rc;
rc = SOM_CreateLocalEnvironment ();
rc = SOM_CreateLocalEnvironment Macro();
</PRE>


==Parameters==
==Parameters==


==Return Code==
==Return Code==
rc (Environment *)  
rc (Environment *)


==Remarks==
==Remarks==
Line 17: Line 15:


==Expansion==
==Expansion==
The SOM_CreateLocalEnvironment expands to an expression of type (Environment *).  
The SOM_CreateLocalEnvironment expands to an expression of type (Environment *).


==Example Code==
==Example Code==
Line 29: Line 27:


==Related==
==Related==
===Data Structures===
;Data Structures
* Environment (somcorba.h)  
* Environment (somcorba.h)  
===Macros===
;Macros
* SOM_DestroyLocalEnvironment  
* SOM_DestroyLocalEnvironment  
* SOM_InitEnvironment  
* SOM_InitEnvironment  
* SOM_UninitEnvironment  
* SOM_UninitEnvironment  
===Functions===
;Functions
* somGetGlobalEnvironmen
* somGetGlobalEnvironmen


[[Category:SOM Kernel]]
[[Category:SOM macro]]

Latest revision as of 02:06, 6 May 2020

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