2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 10:31:22 +00:00
metaforce/Runtime/CMemory.hpp
2015-08-23 08:53:43 -10:00

33 lines
707 B
C++

#ifndef __RETRO_CMEMORY_HPP__
#define __RETRO_CMEMORY_HPP__
#include "IAllocator.hpp"
namespace Retro
{
class COsContext;
class CMemory
{
public:
static void Startup(COsContext&);
static void Shutdown();
static void SetAllocator(COsContext&, IAllocator&);
static void OffsetFakeStatics(int);
static void SetOutOfMemoryCallback(const IAllocator::TOutOfMemoryCallback, void*);
static void Free(void*);
static void* Alloc(u32, IAllocator::EHint, IAllocator::EScope, IAllocator::EType, const CCallStack&);
};
class CMemorySys
{
public:
CMemorySys(COsContext&, IAllocator&);
~CMemorySys();
static IAllocator& GetGameAllocator();
};
}
#endif // __RETRO_CMEMORY_HPP__