diff options
Diffstat (limited to 'src/fud_mem.cpp')
-rw-r--r-- | src/fud_mem.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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 |