summaryrefslogtreecommitdiffstats
path: root/HandleCrash.h
diff options
context:
space:
mode:
authorForkk <forkk@forkk.net>2014-05-09 17:33:32 -0500
committerForkk <forkk@forkk.net>2014-05-09 17:33:32 -0500
commit93ae21abfcce1c6b36e5cd68d23045f2b9ac438d (patch)
treeb89d027023688d5d9e9665160d74188c9ae4c39c /HandleCrash.h
parentcf616efb5da6240db80a810f96abd8e8325ff3c9 (diff)
downloadMultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar
MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar.gz
MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar.lz
MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.tar.xz
MultiMC-93ae21abfcce1c6b36e5cd68d23045f2b9ac438d.zip
Implement crash handling on Linux
This will allow us to generate crash dumps and have users report crashes.
Diffstat (limited to 'HandleCrash.h')
-rw-r--r--HandleCrash.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/HandleCrash.h b/HandleCrash.h
new file mode 100644
index 00000000..3b2e7d00
--- /dev/null
+++ b/HandleCrash.h
@@ -0,0 +1,18 @@
+// This is a simple header file for the crash handling system. It exposes only one method,
+// initBlackMagic, which initializes the system, registering signal handlers, or doing
+// whatever stupid things need to be done on Windows.
+// The platform specific implementations for this system are in UnixCrash.cpp and
+// WinCrash.cpp.
+
+#if defined Q_OS_WIN
+#warning Crash handling is not yet implemented on Windows.
+#elif defined Q_OS_UNIX
+#else
+#warning Crash handling is not supported on this platform.
+#endif
+
+/**
+ * Initializes the crash handling system.
+ */
+void initBlackMagic();
+