summaryrefslogtreecommitdiff
path: root/src/fud_mem.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-11-10 15:14:38 -0600
committerDominick Allen <djallen@librehumanitas.org>2024-11-10 15:14:38 -0600
commit2b641aa2f4f5b894ceed8bf2a46fcef35e930d56 (patch)
treeb5decb0fcd6a225c89d2ababb0fdf2d84b39a334 /src/fud_mem.cpp
parent47e0ff88edd4660513f1d4f3d731008461532a13 (diff)
Refactorings from libfud.HEADmaster
Diffstat (limited to 'src/fud_mem.cpp')
-rw-r--r--src/fud_mem.cpp8
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