summaryrefslogtreecommitdiffstats
path: root/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'error.h')
-rw-r--r--error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/error.h b/error.h
index bfe5ec3..62926cc 100644
--- a/error.h
+++ b/error.h
@@ -195,6 +195,10 @@ FILE *msg_fp(void);
void assert_failed (const char *filename, int line);
+#ifdef ENABLE_DEBUG
+void crash (void); // force a segfault (debugging only)
+#endif
+
/* Inline functions */
static inline bool