aboutsummaryrefslogtreecommitdiff
path: root/GlobalArena.h
diff options
context:
space:
mode:
Diffstat (limited to 'GlobalArena.h')
-rw-r--r--GlobalArena.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/GlobalArena.h b/GlobalArena.h
new file mode 100644
index 0000000..219e743
--- /dev/null
+++ b/GlobalArena.h
@@ -0,0 +1,17 @@
+#ifndef _GLOBAL_ARENA
+#define _GLOBAL_ARENA
+
+#include "BumpAlloc.h"
+#include "Array.h"
+
+// Global bump arena
+extern BumpArena g_arena;
+
+void* GBalloc(usize size);
+int GBresizeable(void* ptr);
+Result GBresize(usize size);
+Result GBfree();
+
+Array Array_Gnew(usize element_size, usize length);
+
+#endif /* _GLOBAL_ARENA */