1 | #include <stdlib.h> |
---|---|
2 | |
3 | #include "wuff_config.h" |
4 | |
5 | /* Default memory allocators. */ |
6 | /* They can be overridden with custom functions at build time. */ |
7 | #ifndef WUFF_MEMALLOC_OVERRIDE |
8 | void * wuff_alloc(size_t size) |
9 | { |
10 | return malloc(size); |
11 | } |
12 | |
13 | void wuff_free(void * mem) |
14 | { |
15 | free(mem); |
16 | } |
17 | #endif |
18 |