Guarded allocator: Override placement new operator

Allows to in-place construct objects which are using guarded allocator.
This commit is contained in:
Sergey Sharybin
2020-07-03 12:21:05 +02:00
parent cdea648117
commit 468adfa4fd

View File

@@ -239,6 +239,10 @@ void MEM_use_guarded_allocator(void);
{ \
if (mem) \
MEM_freeN(mem); \
} \
void *operator new(size_t /*count*/, void *ptr) \
{ \
return ptr; \
}
/* Needed when type includes a namespace, then the namespace should not be