Fix sysMemAllocator (#129)

This commit is contained in:
maybegreat48 2023-07-22 20:49:13 +00:00 committed by GitHub
parent 8f47d77cd6
commit fe0893ffb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;