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

12.36 ZASSERT

FreeM Extension

Triggers error ZASSERT if the supplied truth-valued expression tvexpr is false (1 is true, and 0 is false), and that the optional postcondition evaluates to true or is omitted.

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

Syntax

 ZASSERT:postcondition <tvexpr>

Example

DEFAULT.USER> SET DEBUG=1


DEFAULT.USER> ZASSERT:DEBUG 1=1


DEFAULT.USER> ZASSERT:DEBUG 1=0
 
 
>> Error ZASSERT:  programmer assertion failed in SYSTEM::^%SYSINIT  [$STACK = 0]
>> ZASSERT:DEBUG 1=0
                   ^

This document was generated on May 5, 2025 using texi2html 5.0.