Initial
This commit is contained in:
commit
d4c558a59a
34 changed files with 3850 additions and 0 deletions
20
public/HeapAllocator.hpp
Normal file
20
public/HeapAllocator.hpp
Normal 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();
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue