Possible fox for #319

This commit is contained in:
rfm 2024-02-12 06:10:44 +00:00
parent ec914793c3
commit c0b9ba8992
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2024-02-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSException.m: Prefer objc_set_unexpected() to the older
_objc_unexpected_exception for setting handler. Should cure problem
where _objc_unexpected_exception exists in library but not header.
2024-02-11 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Foundation/NSURLProtocol.h:

View file

@ -1446,10 +1446,10 @@ callUncaughtHandler(id value)
#if defined(_NATIVE_OBJC_EXCEPTIONS)
# ifdef HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER
objc_setUncaughtExceptionHandler(callUncaughtHandler);
# elif defined(HAVE_UNEXPECTED)
_objc_unexpected_exception = callUncaughtHandler;
# elif defined(HAVE_SET_UNEXPECTED)
objc_set_unexpected(callUncaughtHandler);
# elif defined(HAVE_UNEXPECTED)
_objc_unexpected_exception = callUncaughtHandler;
# endif
#endif
}