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