optionally use guarded alloc for tiles compositor, also replace allocation functions...
[blender.git] / source / gameengine / Ketsji / KX_KetsjiEngine.h
index f9c6d59b6689f3cc6c71ba2223d378cb50eb02e4..b3bef016b0ffabe68306f4fafcf1c3a453805199 100644 (file)
@@ -443,9 +443,7 @@ protected:
        
        
 #ifdef WITH_CXX_GUARDEDALLOC
-public:
-       void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:KX_KetsjiEngine"); }
-       void operator delete( void *mem ) { MEM_freeN(mem); }
+       MEM_CXX_CLASS_ALLOC_FUNCS("GE:KX_KetsjiEngine")
 #endif
 };