]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys.h
render: merge R_View_UpdateWithScissor() and R_View_Update()
[xonotic/darkplaces.git] / sys.h
diff --git a/sys.h b/sys.h
index 119748ed8448c41ca241c3c012c37825389c3dfe..26c71b5055196e7fe141ec9be05fe1397a3aafc3 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -204,17 +204,19 @@ 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
-void Sys_Error (const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN;
+/// Causes the entire program to exit ASAP.
+/// Trailing \n should be omitted.
+void Sys_Abort (const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN;
 
 /// (may) output text to terminal which launched program
-void Sys_Print(const char *text);
-/// for the console to report failures inside Con_Printf()
+/// 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()
 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