summaryrefslogtreecommitdiff
path: root/src/win95/fail.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-01 00:55:22 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:09:04 +0200
commit2186d5f3f95cd74a070a490d899291648d58667a (patch)
tree55241a1afa3e1a22e0b6593a8dead0b703800f44 /src/win95/fail.h
parent218ca90543758a20ac326e444ca0643174ca7384 (diff)
Initial revision
Diffstat (limited to 'src/win95/fail.h')
-rw-r--r--src/win95/fail.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/win95/fail.h b/src/win95/fail.h
new file mode 100644
index 0000000..8838103
--- /dev/null
+++ b/src/win95/fail.h
@@ -0,0 +1,44 @@
+/* LotU: Error handling functions.
+
+ Copyright (C) 1995, Jamie Lokier.
+ Written for Rebellion Developments, Ltd.
+
+ Permission to use, copy, modify and distribute this file for any
+ purpose by Rebellion Developments, Ltd. is hereby granted. If you
+ want to use this file outside the company, please let me know.
+*/
+
+#ifndef __fail_h
+#define __fail_h 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef _MSC_VER
+#define VARARG_DECL __cdecl
+#else
+#define VARARG_DECL
+#endif
+
+#ifdef __GNUC__
+
+#if __GNUC__ >= 2 && __GNUC_MINOR__ >= 5
+extern void
+VARARG_DECL fail (const char * __format, ...)
+ __attribute__ ((noreturn, format (printf, 1, 2)));
+#else
+extern __volatile__ void VARARG_DECL fail (const char * __format, ...);
+#endif
+
+#else
+
+extern void VARARG_DECL fail (const char * __format, ...);
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __fail_h */