ascot diagnostics

A6613

Warning: ZQUIT takes an integer of 1 or more; {value} acts as a bare ZQUIT and clears the whole stack

ZQUIT takes an integer of 1 or more; a literal below 1, such as 0, a negative or a non-number, acts as a bare ZQUIT and clears the whole stack, and a fraction is truncated, so 1.5 is 1. IRIS compiles it. Write the integer meant, or a bare ZQUIT if clearing the stack is what is meant.

IRIS compiles the example.

ROUTINE Demo.ZQuitArgument
Main
    Set $ZTrap = "Fail"
    Do Work
    Write "done", !
    Quit
Work
    Set value = ^Demo.ZQuitArgument("missing")
    Write value, !
    Quit
Fail
    Write "failed: ", $ZError, !
    ZQuit 0 //! A6613
    Quit

All diagnostics