optionally use guarded alloc for tiles compositor, also replace allocation functions...
[blender.git] / intern / ghost / GHOST_IEvent.h
index 3c3111a2e6d4c67df4e942692905f6c2ac7a7d04..ef63c57caa541b11fdf68c4d1303e9513472a7f3 100644 (file)
@@ -86,13 +86,7 @@ public:
        virtual GHOST_TEventDataPtr getData() = 0;
        
 #ifdef WITH_CXX_GUARDEDALLOC
-public:
-       void *operator new(size_t num_bytes) {
-               return MEM_mallocN(num_bytes, "GHOST:GHOST_IEvent");
-       }
-       void operator delete(void *mem) {
-               MEM_freeN(mem);
-       }
+       MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_IEvent")
 #endif
 };