From 8249b28bea29e8ce17eac12776a60ec3f9e47176 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 17 Oct 2024 19:42:29 -0500 Subject: Rename InvalidInput to ArgumentInvalid. --- include/fud_allocator.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'include/fud_allocator.hpp') diff --git a/include/fud_allocator.hpp b/include/fud_allocator.hpp index 8955fae..a9fbd67 100644 --- a/include/fud_allocator.hpp +++ b/include/fud_allocator.hpp @@ -32,8 +32,7 @@ class Allocator { virtual Result allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) = 0; - /* ...should this be void? */ - virtual void deallocate(void* pointer, size_t bytes, size_t alignment = alignof(std::max_align_t)) = 0; + virtual FudStatus deallocate(void* pointer, size_t bytes) = 0; virtual bool isEqual(const Allocator& rhs) const = 0; }; @@ -48,8 +47,7 @@ class FudAllocator : public Allocator { virtual Result allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) override; - /* ...should this be void? */ - virtual void deallocate(void* pointer, size_t bytes, size_t alignment = alignof(std::max_align_t)) override; + virtual FudStatus deallocate(void* pointer, size_t bytes) override; virtual bool isEqual(const Allocator& rhs) const override; }; @@ -59,12 +57,9 @@ extern FudAllocator globalFudAllocator; /** \brief The default allocation function for globalFudAllocator. */ extern void* fudAlloc(size_t size); -/** \brief The default allocation function for globalFudAllocator. */ -extern void* fudRealloc(void* ptr, size_t size); - +/** \brief The default deallocation function for globalFudAllocator. */ extern void fudFree(void* ptr); - } // namespace fud #endif -- cgit v1.2.3