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.h | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 GlobalArena.h (limited to 'GlobalArena.h') diff --git a/GlobalArena.h b/GlobalArena.h deleted file mode 100644 index 8c2b524..0000000 --- a/GlobalArena.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _GLOBAL_ARENA -#define _GLOBAL_ARENA - -#include "BumpAlloc.h" -#include "Array.h" - -// Global bump arena -extern BumpArena g_arena; - -void* BG_alloc(usize size); -int BG_resizeable(void* ptr); -Result BG_resize(usize size); -Result BG_free(); - -#endif /* _GLOBAL_ARENA */ -- cgit v1.2.3