mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@11383 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ba41459a1a
commit
f2f2ce1c8e
1 changed files with 4 additions and 0 deletions
|
|
@ -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); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue