ObjFW  Check-in [0d383aeb8a]

Overview
Comment:Ignore return value from _Unwind_RaiseException()

It seems to be garbage on some platforms and both libsupc++ and libobjc
don't check its return value either.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0d383aeb8a5dc2e1b435d306b1979db0bce157fa8ecde50071bc7fe91f75f3dd
User & Date: js on 2020-06-21 15:57:17
Other Links: manifest | tags
Context
2020-06-21
17:53
Throw an exception when there is no name server check-in: f3573582e1 user: js tags: trunk
15:57
Ignore return value from _Unwind_RaiseException() check-in: 0d383aeb8a user: js tags: trunk
2020-06-20
15:36
Add missing documentation check-in: 7d71c669ec user: js tags: trunk
Changes

Modified src/runtime/exception.m from [61beb93dab] to [ff0a7a161b].

750
751
752
753
754
755
756
757

758
759
760
761
762
763
764
765
		OBJC_ERROR("Not enough memory to allocate exception!")

	e->exception.class = GNUCOBJC_EXCEPTION_CLASS;
	e->exception.cleanup = (emergency
	    ? emergencyExceptionCleanup : cleanup);
	e->object = object;

	if (_Unwind_RaiseException(&e->exception) == _URC_END_OF_STACK &&

	    uncaughtExceptionHandler != NULL)
		uncaughtExceptionHandler(object);

	OBJC_ERROR("_Unwind_RaiseException() returned!")
}

objc_uncaught_exception_handler_t
objc_setUncaughtExceptionHandler(objc_uncaught_exception_handler_t handler)







|
>
|







750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
		OBJC_ERROR("Not enough memory to allocate exception!")

	e->exception.class = GNUCOBJC_EXCEPTION_CLASS;
	e->exception.cleanup = (emergency
	    ? emergencyExceptionCleanup : cleanup);
	e->object = object;

	_Unwind_RaiseException(&e->exception);

	if (uncaughtExceptionHandler != NULL)
		uncaughtExceptionHandler(object);

	OBJC_ERROR("_Unwind_RaiseException() returned!")
}

objc_uncaught_exception_handler_t
objc_setUncaughtExceptionHandler(objc_uncaught_exception_handler_t handler)