Modules/public/HeapAllocatorGlobal.hpp
2023-05-26 01:35:29 +03:00

19 lines
308 B
C++

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