
Next: User Breaks
Up: Additional Facilities
Previous: Debug Info Handler
An exit handler is invoked when MzScheme's exit
procedure is called. An exit handler is a closure that takes one
argument: the exit value passed to exit (or the default, 0).
- (exit-handler) returns the current exit handler.
- (exit-handler f) sets the handler to f.
The default exit handler takes any argument and shuts down MzScheme;
if the argument is a fixnum integer, it is used as the exit code,
otherwise the exit code it 0. (When MzScheme is used within
another application, such as MrEd, the default exit handler may be
remapped internally.)
PLT