This commit is contained in:
Ilusha 2023-05-26 01:35:29 +03:00
commit d4c558a59a
34 changed files with 3850 additions and 0 deletions

20
public/HeapAllocator.hpp Normal file
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();
};
};