diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/array.c | 2 | ||||
| -rw-r--r-- | src/lib.c | 4 | ||||
| -rw-r--r-- | src/log.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/array.c b/src/array.c index 6af0f40..5175d6f 100644 --- a/src/array.c +++ b/src/array.c @@ -8,7 +8,7 @@ struct { \ u32 size; \ u32 alloc; \ - type *data; \ + type *__al_sized_by(alloc) data; \ } #define al_array_init(arr) ((arr).size = 0, (arr).alloc = 0, (arr).data = NULL) @@ -1,5 +1,3 @@ -// Testing allocation tracking stuff. (Very scuffed, not thread-safe!) - #include "../include/al/lib.h" #if AL_USE_STDLIB @@ -11,8 +9,8 @@ static void (*_al_free)(void *) = free; s32 (*_al_posix_memalign)(void **, size_t, size_t) = posix_memalign; #endif +// Testing allocation tracking stuff (Very scuffed, not thread-safe!). #define MEMORY_TRACKING 0 - #if MEMORY_TRACKING struct alloc_t { void *ptr; @@ -1,6 +1,6 @@ #include "../include/al/log.h" -#define AL_LOG_SKIP +//#define AL_LOG_SKIP #define AL_LOG_MESSAGE_SIZE 511 #define AL_LOG_USE_SECTION #ifdef AL_LOG_USE_SECTION |