#include <common/main.h>
#include <common/quit/action.h>
Go to the source code of this file.
Functions | |
void | quit_register (quit_action &action) |
void | quit_unregister (quit_action &action) |
void | quit (int) |
void quit | ( | int | ) |
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.)
void quit_register | ( | quit_action & | action | ) |
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.
action | The action to be performed when quit is called. |
void quit_unregister | ( | quit_action & | action | ) |
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.