diff options
author | Peter H. Froehlich <peter.hans.froehlich@gmail.com> | 2019-05-09 00:49:34 +0200 |
---|---|---|
committer | Peter H. Froehlich <peter.hans.froehlich@gmail.com> | 2019-05-09 00:49:34 +0200 |
commit | 3a406c6510648844c2aa922ff8eaee1b4fa55f98 (patch) | |
tree | fbc6d1edc1f4da82fdb97411f03e8e81441821f7 /arena.h | |
parent | a2f0dba1245270b346e65391ee5e5e94807f2510 (diff) | |
download | simple-allocators-3a406c6510648844c2aa922ff8eaee1b4fa55f98.tar.gz |
Added arena allocator.
Diffstat (limited to 'arena.h')
-rw-r--r-- | arena.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arena.h b/arena.h new file mode 100644 index 0000000..43ce053 --- /dev/null +++ b/arena.h @@ -0,0 +1,18 @@ +#pragma once + +#ifndef ARENA_H_ +#define ARENA_H_ + +int +ar_setup(size_t total_size); + +void * +ar_alloc(size_t object_size); + +void +ar_free(void); + +void +ar_cleanup(void); + +#endif |