.ABORT - print an error message and abort.

Usage:

B:
   .abort( format, arg1, arg2, ... )
C:
   #include <sdgstd.h>
   void _abort(const char *format, ...);

Description:

The "format" string and other arguments are passed to PRINTF to create an error message. .ABORT outputs this error message to the terminal in TSS and to file code P* in batch. It then aborts the program. In batch, the abort code is set to 0B and a copy of the message is written to the execution report.

As a rule, .ABORT should be used for those "should not happen" conditions which indicate that there is a bug in your program. For user errors (e.g. typing mistakes in the command line which invokes your program), you should output your diagnostic messages with the ERROR function.

See Also:

expl b lib .warn

expl b lib abort

expl b lib error

expl b lib printf

Copyright © 1996, Thinkage Ltd.