diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-03-06 17:28:59 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:28 +0200 |
commit | 618d689dff9a22d9385abf36f5e364b38273b7cf (patch) | |
tree | 9378d463e73933c90dcf90be93da7c9bac3dbeb1 /src/rw/MemoryMgr.cpp | |
parent | Fix quiet police scanner on OpenAL (diff) | |
download | re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.gz re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.bz2 re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.lz re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.xz re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.zst re3-618d689dff9a22d9385abf36f5e364b38273b7cf.zip |
Diffstat (limited to 'src/rw/MemoryMgr.cpp')
-rw-r--r-- | src/rw/MemoryMgr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rw/MemoryMgr.cpp b/src/rw/MemoryMgr.cpp index 2379692c..b9cff043 100644 --- a/src/rw/MemoryMgr.cpp +++ b/src/rw/MemoryMgr.cpp @@ -28,10 +28,10 @@ RwMemoryFunctions memFuncs = { #ifdef USE_CUSTOM_ALLOCATOR // game seems to be using heap directly here, but this is nicer -void *operator new(size_t sz) { return MemoryMgrMalloc(sz); } -void *operator new[](size_t sz) { return MemoryMgrMalloc(sz); } -void operator delete(void *ptr) noexcept { MemoryMgrFree(ptr); } -void operator delete[](void *ptr) noexcept { MemoryMgrFree(ptr); } +void *operator new(size_t sz) throw() { return MemoryMgrMalloc(sz); } +void *operator new[](size_t sz) throw() { return MemoryMgrMalloc(sz); } +void operator delete(void *ptr) throw() { MemoryMgrFree(ptr); } +void operator delete[](void *ptr) throw() { MemoryMgrFree(ptr); } #endif void* |