metaforce/Runtime/CMemory.hpp

29 lines
453 B
C++
Raw Normal View History

2015-08-17 05:26:58 +00:00
#ifndef __RETRO_CMEMORY_HPP__
#define __RETRO_CMEMORY_HPP__
#include "IAllocator.hpp"
#include "COsContext.hpp"
namespace Retro
{
2015-08-17 05:26:58 +00:00
class CMemory
{
public:
static void Startup(COsContext&);
static void Shutdown();
static void SetAllocator(COsContext&, IAllocator&);
};
class CMemorySys
{
public:
CMemorySys(COsContext&, IAllocator&);
~CMemorySys();
2015-08-17 20:33:58 +00:00
static IAllocator& GetGameAllocator();
2015-08-17 05:26:58 +00:00
};
}
2015-08-17 05:26:58 +00:00
#endif // __RETRO_CMEMORY_HPP__