diff options
| author | @syxhe <https://t.me/syxhe> | 2025-04-21 17:31:37 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-04-21 17:31:37 -0500 |
| commit | 9cf4667331b97f1123f4156273a46558e27c2d2d (patch) | |
| tree | 091766ab0cb3345bc9e61a2387dc65ca7714569c /src/arena.h | |
| parent | d47f45a5e3e40b48131409071b119b442c78bffc (diff) | |
Start work on cqueue implementation, create cleanup set of functions
Diffstat (limited to 'src/arena.h')
| -rw-r--r-- | src/arena.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arena.h b/src/arena.h index 1377fa1..e65b041 100644 --- a/src/arena.h +++ b/src/arena.h | |||
| @@ -7,6 +7,8 @@ | |||
| 7 | // enables XALLOC functionality | 7 | // enables XALLOC functionality |
| 8 | #define ___VXGG___USE_XALLOC_FOR_ARENAS___ 1 | 8 | #define ___VXGG___USE_XALLOC_FOR_ARENAS___ 1 |
| 9 | 9 | ||
| 10 | #define VALLOC(nmemb, size) ((___VXGG___USE_XALLOC_FOR_ARENAS___ > 0) ? xmalloc((nmemb) * (size)) : malloc((nmemb) * (size))) | ||
| 11 | |||
| 10 | // Normal arena. Can expand in size beyond original allocation | 12 | // Normal arena. Can expand in size beyond original allocation |
| 11 | typedef struct arena arena; | 13 | typedef struct arena arena; |
| 12 | 14 | ||
