Core/MemoryManager: Implement allocation filling

Former-commit-id: 12e6c293e6d51663971e3da4c160b12a6710430e
This commit is contained in:
Lynix
2015-06-28 16:03:31 +02:00
parent 318da0d960
commit 9c1441cc82
2 changed files with 25 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ class NAZARA_CORE_API NzMemoryManager
public:
static void* Allocate(std::size_t size, bool multi = false, const char* file = nullptr, unsigned int line = 0);
static void EnableAllocationFilling(bool allocationFilling);
static void EnableAllocationLogging(bool logAllocations);
static void Free(void* pointer, bool multi = false);
@@ -24,6 +25,7 @@ class NAZARA_CORE_API NzMemoryManager
static std::size_t GetAllocatedSize();
static unsigned int GetAllocationCount();
static bool IsAllocationFillingEnabled();
static bool IsAllocationLoggingEnabled();
static void NextFree(const char* file, unsigned int line);