mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Possible fox for #319
This commit is contained in:
parent
ec914793c3
commit
c0b9ba8992
2 changed files with 8 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue