Fix sysMemAllocator (#129)
This commit is contained in:
parent
8f47d77cd6
commit
fe0893ffb5
@ -1,13 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include "base/atRTTI.hpp"
|
||||||
|
|
||||||
namespace rage
|
namespace rage
|
||||||
{
|
{
|
||||||
class sysMemAllocator
|
class sysMemAllocator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~sysMemAllocator() = 0;
|
DEFINE_RAGE_RTTI(rage::sysMemAllocator);
|
||||||
|
|
||||||
virtual void SetQuitOnFail(bool) = 0;
|
virtual void SetQuitOnFail(bool) = 0;
|
||||||
virtual void* Allocate(std::size_t size, std::size_t align, int subAllocator) = 0;
|
virtual void* Allocate(std::size_t size, std::size_t align, int subAllocator) = 0;
|
||||||
virtual void* TryAllocate(std::size_t size, std::size_t align, int subAllocator) = 0;
|
virtual void* TryAllocate(std::size_t size, std::size_t align, int subAllocator) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user