optionally use guarded alloc for tiles compositor, also replace allocation functions...
[blender.git] / source / gameengine / GameLogic / SCA_RandomNumberGenerator.h
index 8f546b37ec8db01e3b8f7416ad10769cd9d28c73..10818cb4e8f1c3d7e4b324f74760efcc5752c26a 100644 (file)
@@ -77,9 +77,7 @@ class SCA_RandomNumberGenerator {
        
        
 #ifdef WITH_CXX_GUARDEDALLOC
-public:
-       void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:SCA_RandomNumberGenerator"); }
-       void operator delete( void *mem ) { MEM_freeN(mem); }
+       MEM_CXX_CLASS_ALLOC_FUNCS("GE:SCA_RandomNumberGenerator")
 #endif
 };