Allocators Tools Initial

This commit is contained in:
IlushaShurupov 2023-07-07 00:10:00 +03:00
parent 4a2ab6f5d0
commit 6d0a4676ab
34 changed files with 3847 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#pragma once
#include "HeapAllocatorGlobal.hpp"
namespace tp {
struct HeapAlloc {
#ifdef MEM_DEBUG
HeapAllocGlobal mAlloc;
ualni mNumAllocations = 0;
struct MemHeadLocal* mEntry = NULL;
#endif
void* allocate(ualni aBlockSize);
void deallocate(void* aPtr);
~HeapAlloc();
};
};