aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc/objc-api.h
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-09-08 21:03:09 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-09-08 21:03:09 +0000
commite30511ed4b4e31f800fa1ff212006df2740bd410 (patch)
tree9b72d3e49901d1f748b383212af5d710212ac59c /libobjc/objc/objc-api.h
parent2bfef1ad48b7acd536a8ac0edb218088f68979b5 (diff)
downloadgcc-e30511ed4b4e31f800fa1ff212006df2740bd410.zip
gcc-e30511ed4b4e31f800fa1ff212006df2740bd410.tar.gz
gcc-e30511ed4b4e31f800fa1ff212006df2740bd410.tar.bz2
objc-exception.h: New file.
* objc/objc-exception.h: New file. * exception.c (objc_set_uncaught_exception_handler): Implemented. (objc_set_exception_matcher): Implemented. (objc_exception_throw): Use the uncaught exception handler if set. (PERSONALITY_FUNCTION): Use the exception matcher instead of the hardcoded isKindOf. (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code up. Removed segmentation fault when value is 'nil'. * objc/objc-api.h (_objc_unexpected_exception): Mark as deprecated. * Makefile.in (exception.lo, exception_gc.lo): Use -Wno-deprecated-declarations when compiling. (OBJC_H): Added objc-exception.h From-SVN: r164023
Diffstat (limited to 'libobjc/objc/objc-api.h')
-rw-r--r--libobjc/objc/objc-api.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libobjc/objc/objc-api.h b/libobjc/objc/objc-api.h
index 30984b1..8a634a4 100644
--- a/libobjc/objc/objc-api.h
+++ b/libobjc/objc/objc-api.h
@@ -431,12 +431,14 @@ objc_EXPORT IMP (*__objc_msg_forward)(SEL);
objc_EXPORT IMP (*__objc_msg_forward2)(id, SEL);
/*
-** 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.
+** 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);
+objc_EXPORT void (*_objc_unexpected_exception)(id) __attribute__ ((deprecated));
Method_t class_get_class_method(MetaClass _class, SEL aSel);