diff options
Diffstat (limited to 'src/i_system.h')
-rw-r--r-- | src/i_system.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i_system.h b/src/i_system.h index a5e06a50..3f114fd0 100644 --- a/src/i_system.h +++ b/src/i_system.h @@ -32,6 +32,7 @@ #include "d_event.h" +typedef void (*atexit_func_t)(void); // Called by DoomMain. void I_Init (void); @@ -86,6 +87,11 @@ void I_Tactile (int on, int off, int total); void I_Error (char *error, ...); +// Schedule a function to be called when the program exits. +// If run_if_error is true, the function is called if the exit +// is due to an error (I_Error) + +void I_AtExit(atexit_func_t func, boolean run_if_error); #endif |