 | CSYSiAssertGX Method |
DLL function argument error assertion
Namespace:
GeoEngine.Core.GXNetX
Assembly:
geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic static int iAssertGX(
CGXNETCore gxNetShared,
int exp,
string mod,
string parm
)
public static int iAssertGX(
CGXNETCore gxNetShared,
int exp,
string mod,
string parm
)
Public Shared Function iAssertGX (
gxNetShared As CGXNETCore,
exp As Integer,
mod As String,
parm As String
) As Integer
Public Shared Function iAssertGX (
gxNetShared As CGXNETCore,
exp As Integer,
mod As String,
parm As String
) As Integer
public:
static int iAssertGX(
CGXNETCore^ gxNetShared,
int exp,
String^ mod,
String^ parm
)
public:
static int iAssertGX(
CGXNETCore^ gxNetShared,
int exp,
String^ mod,
String^ parm
)
static member iAssertGX :
gxNetShared : CGXNETCore *
exp : int *
mod : string *
parm : string -> int
static member iAssertGX :
gxNetShared : CGXNETCore *
exp : int *
mod : string *
parm : string -> int
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
Remarks
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.
See Also