16#define AUTOMATIC_XALLOCATOR_INIT_DESTROY
17#ifdef AUTOMATIC_XALLOCATOR_INIT_DESTROY
25class XallocInitDestroy
31 static int32_t refCount;
33static XallocInitDestroy xallocInitDestroy;
68void *
xrealloc(
void *ptr,
size_t size);
79 void* operator new(size_t size) { \
80 return xmalloc(size); \
82 void* operator new(size_t size, void* mem) { \
85 void* operator new(size_t size, const std::nothrow_t& nt) { \
86 return xmalloc(size); \
88 void* operator new[](size_t size) { \
89 return xmalloc(size); \
91 void operator delete(void* pObject) { \
94 void operator delete(void* pObject, const std::nothrow_t& nt) { \
97 void operator delete[](void* pData) { \
void xalloc_init()
Definition xallocator.cpp:176
void xfree(void *ptr)
Definition xallocator.cpp:302
void xalloc_stats()
Output allocator statistics to the standard output.
Definition xallocator.cpp:358
void xalloc_destroy()
Definition xallocator.cpp:217
void * xrealloc(void *ptr, size_t size)
Definition xallocator.cpp:324
void * xmalloc(size_t size)
Definition xallocator.cpp:284