From 2b641aa2f4f5b894ceed8bf2a46fcef35e930d56 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 10 Nov 2024 15:14:38 -0600 Subject: Refactorings from libfud. --- src/fud_mem.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/fud_mem.cpp') diff --git a/src/fud_mem.cpp b/src/fud_mem.cpp index d8f6673..ffcf6fd 100644 --- a/src/fud_mem.cpp +++ b/src/fud_mem.cpp @@ -4,6 +4,8 @@ namespace fud { +// nolintbegin(cppcoreguidelines-no-malloc) + void* fudAlloc(size_t size) { return malloc(size); } @@ -12,8 +14,10 @@ void* fudRealloc(void* ptr, size_t size) { return realloc(ptr, size); } -void fudFree(void* ptr) { - return free(ptr); +void fudFree(std::byte* ptr) { + free(ptr); } +// nolintend(cppcoreguidelines-no-malloc) + } // namespace fud -- cgit v1.2.3