Click or drag to resize
CSYSiAssertGX Method
DLL function argument error assertion

Available since Oasis montaj version: 5.0
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNetX
Assembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.dll)
Notes
Use this function to evaluate errors in passed function arguments. Functions called by GX programs should be tolerant of all errors in the passed argument list. The iAssertGX_SYS can be used to test each argument before doing any work in the function. If an assertion fails, an error will be registered with the name of the function and the parameter name and a 1 will be returned. The caller should immediatley cleaning up (if necessary) and return. You could also test the validity of arguments and call the Error_SYS, ErrorTag_SYS and Terminate_SYS functions if you would like to provide a more specific error message.
Syntax
public static int iAssertGX(
	CGXNETCore gxNetShared,
	int exp,
	string mod,
	string parm
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
exp
Type: SystemInt32
Boolean expression (ie. (dB != 0.0) )
mod
Type: SystemString
Module name
parm
Type: SystemString
Argument name

Return Value

Type: Int32
0 assertion passed 1 assertion failed
See Also