.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@11383 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-10-15 08:58:45 +00:00
parent ba41459a1a
commit f2f2ce1c8e

View file

@ -242,6 +242,10 @@ void MemoryShrink()
#ifdef UPP_HEAP
#include <new>
#ifdef COMPILER_GCC
#pragma GCC diagnostic ignored "-Wdeprecated" // silence modern GCC warning about throw(std::bad_alloc)
#endif
void *operator new(size_t size) throw(std::bad_alloc) { void *ptr = UPP::MemoryAlloc(size); return ptr; }
void operator delete(void *ptr) throw() { UPP::MemoryFree(ptr); }