Compare commits
1 Commits
svn-tags/l
...
svn-tags/l
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3403461ccd |
@@ -38,7 +38,7 @@ std::get_unexpected() throw()
|
||||
void
|
||||
std::unexpected()
|
||||
{
|
||||
(*std::get_unexpected())();
|
||||
(*__unexpected_handler)();
|
||||
// unexpected handler should not return
|
||||
std::terminate();
|
||||
}
|
||||
@@ -62,7 +62,7 @@ std::terminate()
|
||||
try
|
||||
{
|
||||
#endif // _LIBCPP_NO_EXCEPTIONS
|
||||
(*std::get_terminate())();
|
||||
(*__terminate_handler)();
|
||||
// handler should not return
|
||||
::abort ();
|
||||
#ifndef _LIBCPP_NO_EXCEPTIONS
|
||||
|
@@ -36,9 +36,8 @@ operator new(std::size_t size) throw (std::bad_alloc)
|
||||
{
|
||||
// If malloc fails and there is a new_handler,
|
||||
// call it to try free up memory.
|
||||
std::new_handler nh = std::get_new_handler();
|
||||
if (nh)
|
||||
nh();
|
||||
if (__new_handler)
|
||||
__new_handler();
|
||||
else
|
||||
#ifndef _LIBCPP_NO_EXCEPTIONS
|
||||
throw std::bad_alloc();
|
||||
|
Reference in New Issue
Block a user