optionally use guarded alloc for tiles compositor, also replace allocation functions...
[blender.git] / source / gameengine / Rasterizer / RAS_Rect.h
index c845c2c21bde93bd6d2989a5cc200b6cda909692..cb5f7d47457b0bb74e07b50fdd5c5f79a2b90b78 100644 (file)
@@ -94,11 +94,10 @@ public:
        {
                m_y2 = y2;
        }
-       
+
+
 #ifdef WITH_CXX_GUARDEDALLOC
-public:
-       void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_Rect"); }
-       void operator delete( void *mem ) { MEM_freeN(mem); }
+       MEM_CXX_CLASS_ALLOC_FUNCS("GE:RAS_Rect")
 #endif
 };