29 #include "MemoryAllocator.h" 40 #define ALLOCATE(Allocator, Desc, Size) (Allocator).Allocate(Size, Desc, __FILE__, __LINE__) 41 #define FREE(Allocator, Ptr) Allocator.Free(Ptr) 47 inline void*
operator new(
size_t Size,
const char* dbgDescription,
const char* dbgFileName,
const int dbgLineNumber)
52 inline void*
operator new[](
size_t Size,
const char* dbgDescription,
const char* dbgFileName,
const int dbgLineNumber)
58 inline void operator delete(
void* Ptr,
const char* dbgDescription,
const char* dbgFileName,
const int dbgLineNumber)
63 inline void operator delete[](
void* Ptr,
const char* dbgDescription,
const char* dbgFileName,
const int dbgLineNumber)
68 #define MemAlloc(Size, Desc) GetRawAllocator().Allocate(Size, Desc, __FILE__, __LINE__) 69 #define MemFree(Ptr) GetRawAllocator().Free(Ptr) 70 #define New(Desc) new(Desc, __FILE__, __LINE__) Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34
IMemoryAllocator & GetRawAllocator()
Returns raw memory allocator.
Definition: EngineMemory.cpp:46
void SetRawAllocator(IMemoryAllocator *pRawAllocator)
Sets raw memory allocator. This function must be called before any memory allocation/deallocation fun...
Definition: EngineMemory.cpp:36