summaryrefslogtreecommitdiff
path: root/libobjc/objc/deprecated/objc_unexpected_exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/objc/deprecated/objc_unexpected_exception.h')
-rw-r--r--libobjc/objc/deprecated/objc_unexpected_exception.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libobjc/objc/deprecated/objc_unexpected_exception.h b/libobjc/objc/deprecated/objc_unexpected_exception.h
new file mode 100644
index 000000000..69ffd4e87
--- /dev/null
+++ b/libobjc/objc/deprecated/objc_unexpected_exception.h
@@ -0,0 +1,9 @@
+/*
+** Hook for uncaught exceptions. This hook is called when an
+** exception is thrown and no valid exception handler is in place.
+** The function is expected never to return. If the function returns
+** the result is currently undefined. This is deprecated. Please use
+** objc_set_uncaught_exception_handler() from objc/objc-exception.h
+** instead.
+*/
+objc_EXPORT void (*_objc_unexpected_exception)(id) __attribute__ ((deprecated));