aboutsummaryrefslogtreecommitdiff
path: root/Array.h
blob: e7705b21f18cfff6f9631579f5ff9da5ad5c3994 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _ARRAY
#define _ARRAY

#include "Types.h"
#include "BumpAlloc.h"

typedef void* Array;

Array  A_new(BumpArena b, usize element_size, usize length);
usize  A_length(Array arr);
usize  A_count(Array arr);
Result A_push(Array arr, void *value);
void*  A_pop(Array arr);

Array AG_new(usize element_size, usize length);

#endif /* _ARRAY */