diff options
Diffstat (limited to 'GlobalArena.h')
| -rw-r--r-- | GlobalArena.h | 17 |
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 */ |
