Add set_new_handler and nothrow implementations
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@104073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
321b4bb7ae
commit
76fdaa7c70
10
src/new.cpp
10
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()
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user