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

3.35 $ZTRAP

Sets or retrieves the entryref to be executed when an M program execution error occurs under FreeM-style or DSM 2.0-style error processing.

In FreeM-style error processing, $ZTRAP is specific to each program execution stack level.

In DSM 2.0-style error processing, $ZTRAP is the same for all program execution stack levels.

When FreeM encounters an error, if $ZTRAP is nonempty and $ETRAP is empty, FreeM will perform an implicit GOTO to the entryref indicated in $ZTRAP.

If $ETRAP is nonempty when FreeM encounters an error, the value of $ZTRAP is ignored, whether FreeM-style or DSM 2.0-style error processing is enabled.


This document was generated on January 3, 2022 using texi2html 5.0.