summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/crash.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 05:17:56 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 05:17:56 +0000
commitd42a180a16bfde48d1b4b198db0d64c097ab93a7 (patch)
tree75e1cda9ad77f84596abe6ab49669cae35e6a563 /crawl-ref/source/crash.h
parente547d7f8d9b7dc26589af1e1290fa5df850722f0 (diff)
downloadcrawl-ref-d42a180a16bfde48d1b4b198db0d64c097ab93a7.tar.gz
crawl-ref-d42a180a16bfde48d1b4b198db0d64c097ab93a7.zip
Put platform dependant crash handling code into crash-X.cc files, and link
against them in the make files like libunix/libgui/etc are. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8675 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/crash.h')
-rw-r--r--crawl-ref/source/crash.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/crash.h b/crawl-ref/source/crash.h
new file mode 100644
index 0000000000..6a2e618cb2
--- /dev/null
+++ b/crawl-ref/source/crash.h
@@ -0,0 +1,18 @@
+/*
+ * File: crash.h
+ * Summary: Platform specific crash handling functions.
+ * Written by: Matthew cline
+ *
+ * Modified for Crawl Reference by $Author$ on $Date$
+ */
+
+#ifndef CRASH_H
+#define CRASH_H
+
+#include <stdio.h>
+
+void init_crash_handler();
+void dump_crash_info(FILE* file);
+void write_stack_trace(FILE* file, int ignore_count);
+
+#endif