From 0d249b1d47a7f84cfe5f09ad070d1affd26566da Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 28 Apr 2026 14:06:44 +0300 Subject: feat!: Refactor using MemoryManager The idea is to provide a universal memory management "API", through which you allocate and deallocate. This allows our implementations (for String and Vector) to be more generic. It does also allow usage of different allocators depending on situation. --- GlobalArena.c | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 GlobalArena.c (limited to 'GlobalArena.c') diff --git a/GlobalArena.c b/GlobalArena.c deleted file mode 100644 index e19e38d..0000000 --- a/GlobalArena.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "GlobalArena.h" - -BumpArena g_arena = NULL; - -void* -BG_alloc(usize size) { - return B_alloc(g_arena, size); -} - -int -BG_resizeable(void* ptr) { - return B_resizeable(g_arena, ptr); -} - -Result -BG_resize(usize size) { - return B_resize(g_arena, size); -} - -Result -BG_free() { - return B_free(g_arena); -} -- cgit v1.2.3