aboutsummaryrefslogtreecommitdiff
path: root/GlobalArena.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-04-28 14:06:44 +0300
committerSyndamia <kamen@syndamia.com>2026-05-12 07:08:56 +0300
commit0d249b1d47a7f84cfe5f09ad070d1affd26566da (patch)
treef395f67eecb27daea3fc4a9ad8e59bf40f988984 /GlobalArena.h
parent5c36b582ad60a569ed996fe188ed92ef6bd7fc5f (diff)
downloadfoollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.tar
foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.tar.gz
foollib-0d249b1d47a7f84cfe5f09ad070d1affd26566da.zip
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.
Diffstat (limited to 'GlobalArena.h')
-rw-r--r--GlobalArena.h15
1 files changed, 0 insertions, 15 deletions
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 */