Go to the source code of this file.
Function Documentation
The quit function shall be used to exit the program, both for success and for failure. (Note: we don't use atexit because Aegis was written long before atexit() was commonly available.) (Note: we don't use atexit because Aegis was written long before atexit() was commonly available.)
The quit_register function is used to register a quit_action to be called when the quit() function is called. Actions are called in the reverse of the order they were registered.
- Parameters:
-
| action | The action to be performed when quit is called. |
The quit_unregister function is used to cancel an previous quit registration. The action is not performed when quit() is called. It is a bug if quit_register has not been called previously.