aboutsummaryrefslogtreecommitdiff
path: root/GlobalArena.h
blob: 219e74327f3fc59e72a7bd2552758c3307c8a300 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 */