Sign in Join
FPDoc Onlineexperiment

AssertErrorProc constant

In unit System

Custom assert error handling procedure.

Declaration

pascal
AssertErrorProc: TAssertErrorProc = @ SysAssert

Description

If set, the AssertErrorProc constant is used when an assert error occurs. If it is not set, then the standard assert error handling is performed:

  • The assertion error message is printed.
  • The location of the assertion is printed.
  • a stack dump is printed.
  • The program exits with error code 227.

The SysUtils unit sets this procedure and raises an exception in its handler.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.