[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

SysAssert

Standard Assert failure implementation

Declaration

Source position: systemh.inc line 680

procedure SysAssert(

  const Msg: ShortString;

  const FName: ShortString;

  LineNo: LongInt;

  ErrorAddr: Pointer

);

Description

SysAssertis the standard implementation of the assertion failed code. It is the default value of the AssertErrorProcconstant. It will print the assert message Msgtogether with the filename FNameand linenumber LineNoto standard error output (StdErr) and will halt the program with exit code 227. The error address ErrorAddris ignored.

See also

AssertErrorProc

  

Custom assert error handling procedure