exception.cpp: std::uncaught_exception() may return false with -fno-exceptions.

This commit is contained in:
NAKAMURA Takumi
2011-04-25 10:09:29 +09:00
parent ec97728ba0
commit 17c8c462ae

View File

@@ -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();