Share via


XMAssert

The default XNA Math library assert handling function.

Syntax

VOID XMAssert(
         CONST CHAR *pExpression,
         CONST CHAR *pFileName,
         UNIT LineNumber
)

Parameters

  • pExpression
    [in] Specifies any logical expression. If the expression evaluates to FALSE, the code is halted.
  • pFileName
    [in] Name of the file where the assert is located.
  • LineNumber
    [in] Location in the file where the assert is located.

Return Value

None

Remarks

The XMASSERT macro will automatically enter the correct values for pFileName and LineNumber.

Requirements

Header: Declared in xnamath.h.

See Also

XMASSERT