X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys.h;h=eb99088fee0c5c7100d36743c375a7725f787ce0;hp=2255a6a3064502f597341232da317e9eb089d470;hb=HEAD;hpb=01642af37128bffc1accbf2e92cb2428ea570720 diff --git a/sys.h b/sys.h index 2255a6a3..a5c6b275 100644 --- a/sys.h +++ b/sys.h @@ -204,10 +204,12 @@ char *Sys_TimeString(const char *timeformat); // system IO interface (these are the sys functions that need to be implemented in a new driver atm) // -/// an error will cause the entire program to exit +/// Causes the entire program to exit ASAP. +/// Trailing \n should be omitted. void Sys_Error (const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN; /// (may) output text to terminal which launched program +/// is POSIX async-signal-safe /// textlen excludes any (optional) \0 terminator void Sys_Print(const char *text, size_t textlen); /// used to report failures inside Con_Printf() @@ -215,7 +217,6 @@ void Sys_Printf(const char *fmt, ...); /// INFO: This is only called by Host_Shutdown so we dont need testing for recursion void Sys_SDL_Shutdown(void); -void Sys_Quit (int returnvalue); /*! on some build/platform combinations (such as Linux gcc with the -pg * profiling option) this can turn on/off profiling, used primarily to limit @@ -260,5 +261,7 @@ void Sys_InitProcessNice (void); void Sys_MakeProcessNice (void); void Sys_MakeProcessMean (void); +int Sys_Main(int argc, char *argv[]); + #endif