common/quit.h File Reference

#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)


Function Documentation

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.

Parameters:
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.


Generated on Wed Mar 12 23:37:36 2008 for Aegis by  doxygen 1.5.5