 |
exit |
Function (Macro) |
Forced termination of the program.
exit terminates the program (it may be called from any nesting level). Before termination, any
registered "exit functions" (posted with atexit) are called. ANSI proposes
that exit also closes all open files. Such behaviour is not implemented here, you need to do
it manually if necessary.
code is the exit status. Value of 0 is used to indicate a normal exit. If code
is nonzero, an error message dialog which corresponds with code code will be displayed
before exiting. Note that this is not the same as throwing error code using
ER_throwVar. Throwing an error is much more "barbaric"
method for exiting from the program. Among others, by throwing an error, no registered "exit
functions" will be called.
Used by: abort