summaryrefslogtreecommitdiff
path: root/engine/sysexternal.h
diff options
context:
space:
mode:
Diffstat (limited to 'engine/sysexternal.h')
-rw-r--r--engine/sysexternal.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/engine/sysexternal.h b/engine/sysexternal.h
new file mode 100644
index 0000000..0786a4b
--- /dev/null
+++ b/engine/sysexternal.h
@@ -0,0 +1,18 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef SYSEXTERNAL_H
+#define SYSEXTERNAL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+// an error will cause the entire program to exit and upload a minidump to us
+void Sys_Error(PRINTF_FORMAT_STRING const char *psz, ...) FMTFUNCTION( 1, 2 );
+// kill the process with an error but don't send us a minidump, its not a bug but a user config problem
+void Sys_Exit( PRINTF_FORMAT_STRING const char *error, ... ) FMTFUNCTION( 1, 2 );
+
+#endif // SYSEXTERNAL_H