optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro.

This commit is contained in:
Campbell Barton
2012-06-25 09:14:37 +00:00
parent 78196d60d1
commit cc0784c1b9
144 changed files with 261 additions and 486 deletions

View File

@@ -73,12 +73,10 @@ public:
virtual void SetDrawingMode(int drawingmode);
virtual bool QueryLists(){return true;}
#ifdef WITH_CXX_GUARDEDALLOC
public:
void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_ListRasterizer"); }
void operator delete( void *mem ) { MEM_freeN(mem); }
MEM_CXX_CLASS_ALLOC_FUNCS("GE:RAS_ListRasterizer")
#endif
};