Modules/Allocators/public/HeapAllocatorGlobal.hpp
2023-06-30 14:04:14 +00:00

18 lines
282 B
C++

#pragma once
#include "Module.hpp"
namespace tp {
struct HeapAllocGlobal {
#ifdef MEM_DEBUG
static ualni mNumAllocations;
static struct MemHead* mEntry;
#endif
static void* allocate(ualni aBlockSize);
static void deallocate(void* aPtr);
~HeapAllocGlobal();
};
};