summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-18 21:45:22 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-18 21:45:22 +0000
commitfe51d90d38d14412a5f173b34e7ba5e0d8ddac80 (patch)
treed482a34b32c83c7cf4d9eaf019889b37b5c254b4 /libdimension/dimension
parent8646f32b25d5ae22b5483854059ee584dfc4a2c7 (diff)
downloaddimension-fe51d90d38d14412a5f173b34e7ba5e0d8ddac80.tar.xz
Allow custom fatal error handlers.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdimension/dimension/error.h b/libdimension/dimension/error.h
index cc38d65..caee303 100644
--- a/libdimension/dimension/error.h
+++ b/libdimension/dimension/error.h
@@ -54,4 +54,12 @@ void dmnsn_report_error(dmnsn_severity severity,
dmnsn_severity dmnsn_get_resilience();
void dmnsn_set_resilience(dmnsn_severity resilience);
+/* Fatal error callback type */
+typedef void dmnsn_fatal_error_fn();
+
+/* Get and set libdimension fatal error handling strategy - the default is
+ exit(EXIT_FAILURE) */
+dmnsn_fatal_error_fn *dmnsn_get_fatal_error_fn();
+void dmnsn_set_fatal_error_fn(dmnsn_fatal_error_fn *fatal);
+
#endif /* DIMENSION_ERROR_H */