aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/almalloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/almalloc.h b/common/almalloc.h
index ccaa6a98..d9b285fe 100644
--- a/common/almalloc.h
+++ b/common/almalloc.h
@@ -31,6 +31,10 @@ int al_is_sane_alignment_allocator(void) noexcept;
} \
void operator delete(void *block) noexcept { al_free(block); }
+#define DEF_PLACE_NEWDEL() \
+ void *operator new(size_t /*size*/, void *ptr) noexcept { return ptr; } \
+ void operator delete(void *block) noexcept { al_free(block); }
+
namespace al {
template<typename T, size_t alignment=DEF_ALIGN>