Jump to content

SomGetGlobalEnvironment: Difference between revisions

From EDM2
Created page with "This function returns a pointer to the current global Environment structure. ==Syntax== <PRE> Environment *rc; rc = somGetGlobalEnvironment(); </PRE> ==Parameters== ==..."
 
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:somGetGlobalEnvironment}}
This function returns a pointer to the current global Environment structure.  
This function returns a pointer to the current global Environment structure.  


Line 26: Line 27:
* Environment (somcorba.h)  
* Environment (somcorba.h)  
===Functions===  
===Functions===  
* somExceptionId  
* [[somExceptionId]]
* somExceptionValue  
* [[somExceptionValue]]
* somExceptionFree  
* [[somExceptionFree]]
* somSetException  
* [[somSetException]]


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

Revision as of 20:06, 12 October 2017

This function returns a pointer to the current global Environment structure.

Syntax

Environment     *rc;
rc = somGetGlobalEnvironment();

Parameters

Return Code

rc (Environment *)
A pointer to the current global Environment structure.

Remarks

This function returns a pointer to the current global Environment structure. This structure can be passed to methods that require an (Environment *) argument. The caller can determine if the called method has raised an exception by testing whether

ev->exception._major != NO_EXCEPTION

If an exception has been raised, the caller can retrieve the name and value of the exception using the somExceptionId and somExceptionValue methods.

Example Code

See function somSetException.

Related

Data Structures

  • Environment (somcorba.h)

Functions