[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.4 ASSERT

Triggers error ASSERT if the supplied truth-valued expression tvexpr is false (1 is true, and 0 is false).

The ASSERT error is catchable whether using standard-style, FreeM-style, or DSM 2.0-style error processing.

Syntax

 ASSERT <tvexpr>

Example

USER> ASSERT 1=1
 
 
USER> ASSERT 1=0
 
 
>> Error ASSERT:  programmer assertion failed in SYSTEM::^%ZFREEM  [$STACK = 0]
>> ASSERT 1=0
              ^

This document was generated on September 10, 2021 using texi2html 5.0.