summaryrefslogtreecommitdiff
path: root/libgcompat/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/internal.c')
-rw-r--r--libgcompat/internal.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libgcompat/internal.c b/libgcompat/internal.c
new file mode 100644
index 0000000..441b3cc
--- /dev/null
+++ b/libgcompat/internal.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <stdarg.h>
+#include <stdlib.h>
+
+
+void GCOMPAT__panic(const char *fmt, ...)
+{
+ va_list va;
+
+ fprintf(stderr, "*** gcompat panic ***\n");
+
+ va_start(va, fmt);
+ vfprintf(stderr, fmt, va);
+ va_end(va);
+
+ abort();
+}