exception.cpp: std::uncaught_exception() may return false with -fno-exceptions.
This commit is contained in:
@@ -77,6 +77,9 @@ std::terminate()
|
||||
|
||||
bool std::uncaught_exception() throw()
|
||||
{
|
||||
#ifdef _LIBCPP_NO_EXCEPTIONS
|
||||
return false;
|
||||
#endif
|
||||
#if __APPLE__
|
||||
// on Darwin, there is a helper function so __cxa_get_globals is private
|
||||
return __cxxabiapple::__cxa_uncaught_exception();
|
||||
|
Reference in New Issue
Block a user