#pragma once // used: mem::CallVFunc #include "Utils/Memory.h" #pragma warning(push) #pragma warning(disable : 4191) class IMemAlloc { public: void* Alloc(std::size_t nSize) { return M::CallVFunc(this, nSize); } void* ReAlloc(const void* pMemory, std::size_t nSize) { return M::CallVFunc(this, pMemory, nSize); } void Free(const void* pMemory) { return M::CallVFunc(this, pMemory); } std::size_t GetSize(const void* pMemory) { return M::CallVFunc(this, pMemory); } }; #pragma warning(pop)