diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-22 12:41:28 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-22 12:41:28 -0500 |
commit | 7da829d48f9059c83ab9cada2c850621e8bbd3f3 (patch) | |
tree | 314e7a5b645e910d4997e3bee980bd2024f3087d /test/test_common.cpp | |
parent | bf81e34921e3e30b05313efbcf5c9fa839cb7c05 (diff) |
Basics of library.
Diffstat (limited to 'test/test_common.cpp')
-rw-r--r-- | test/test_common.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_common.cpp b/test/test_common.cpp new file mode 100644 index 0000000..a03c8db --- /dev/null +++ b/test/test_common.cpp @@ -0,0 +1,18 @@ +#include "fud_memory.hpp" +#include <cstdlib> + +namespace fud { + +void* fudAlloc(size_t size) { + return malloc(size); +} + +void* fudRealloc(void* ptr, size_t size) { + return realloc(ptr, size); +} + +void fudFree(void* ptr) { + return free(ptr); +} + +} // namespace fud |