Fix sysMemAllocator (#129)

This commit is contained in:
maybegreat48 2023-07-22 20:49:13 +00:00 committed by GitHub
parent d1e6b3b7b9
commit 9583d2f7e3

View File

@ -1,13 +1,13 @@
#pragma once
#include <cstddef>
#include "base/atRTTI.hpp"
namespace rage
{
class sysMemAllocator
{
public:
virtual ~sysMemAllocator() = 0;
DEFINE_RAGE_RTTI(rage::sysMemAllocator);
virtual void SetQuitOnFail(bool) = 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;