Modules/Allocators/public/HeapAllocatorGlobal.hpp
2023-06-29 08:20:23 +03:00

18 lines
288 B
C++

#pragma once
#include "BaseModule.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();
};
};