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:
Nick Kledzik 2010-05-18 22:17:13 +00:00
parent 321b4bb7ae
commit 76fdaa7c70

View File

@ -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()
{
}