diff options
| author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-08 21:03:09 +0000 |
|---|---|---|
| committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-08 21:03:09 +0000 |
| commit | a5974a584702f39174e0744e9647726e92f1a216 (patch) | |
| tree | 9b72d3e49901d1f748b383212af5d710212ac59c /libobjc/objc/objc-api.h | |
| parent | 0e18892cd3edaa71b4e5ed33857b660a8766fcae (diff) | |
| download | ppe42-gcc-a5974a584702f39174e0744e9647726e92f1a216.tar.gz ppe42-gcc-a5974a584702f39174e0744e9647726e92f1a216.zip | |
* 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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/objc/objc-api.h')
| -rw-r--r-- | libobjc/objc/objc-api.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libobjc/objc/objc-api.h b/libobjc/objc/objc-api.h index 30984b1d136..8a634a44442 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); |

