diff options
-rw-r--r-- | libcxx/src/new.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp index bc105cc4859..9ad0612824b 100644 --- a/libcxx/src/new.cpp +++ b/libcxx/src/new.cpp @@ -118,6 +118,16 @@ operator delete[] (void* ptr, const std::nothrow_t&) throw () namespace std { +const nothrow_t nothrow = {}; + +new_handler +set_new_handler(new_handler handler) throw() +{ + new_handler r = __new_handler; + __new_handler = handler; + return r; +} + bad_alloc::bad_alloc() throw() { } |