diff options
| author | @syxhe <https://t.me/syxhe> | 2025-03-24 22:45:27 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-03-24 22:45:27 -0500 |
| commit | a3fdf44e42b988185d1bedd9521b17b34969e75e (patch) | |
| tree | c8ed2c318380fbe7960a461306803ec9b5732df4 /src/arena.h | |
| parent | a407458a893fd0716cfee564ad98756364c25a7a (diff) | |
Add a flag to control whether arena alloc functions are xalloc or normal. Improve error handling
Diffstat (limited to 'src/arena.h')
| -rw-r--r-- | src/arena.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arena.h b/src/arena.h index 23dc664..a94001b 100644 --- a/src/arena.h +++ b/src/arena.h | |||
| @@ -3,6 +3,10 @@ | |||
| 3 | 3 | ||
| 4 | #include <stddef.h> | 4 | #include <stddef.h> |
| 5 | 5 | ||
| 6 | // Whether to use `XALLOC` or normal `malloc` functions for acquiring new memory in an arena. `> 0` | ||
| 7 | // enables XALLOC functionality | ||
| 8 | #define ___VXGG___USE_XALLOC_FOR_ARENAS___ 1 | ||
| 9 | |||
| 6 | typedef struct arena arena; | 10 | typedef struct arena arena; |
| 7 | typedef arena simplearena; | 11 | typedef arena simplearena; |
| 8 | 12 | ||
