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);
93 void* operator new(size_t size) { \
94 return xmalloc(size); \
96 void* operator new(size_t size, void* mem) { \
99 void* operator new(size_t size, const std::nothrow_t& nt) { \
100 return xmalloc(size); \
102 void* operator new[](size_t size) { \
103 return xmalloc(size); \
105 void operator delete(void* pObject) { \
108 void operator delete(void* pObject, const std::nothrow_t& nt) { \
111 void operator delete[](void* pData) { \
void xalloc_init()
Definition xallocator.cpp:193
void xfree(void *ptr)
Definition xallocator.cpp:326
void xalloc_stats()
Output allocator statistics to the standard output.
Definition xallocator.cpp:382
void xalloc_destroy()
Definition xallocator.cpp:234
void * xrealloc(void *ptr, size_t size)
Definition xallocator.cpp:348
void * xmalloc(size_t size)
Definition xallocator.cpp:301