Add source locs to allocator procs

This commit is contained in:
Krzosa Karol
2024-01-28 11:21:57 +01:00
parent 32deac08e0
commit 1547ebd5ce
4 changed files with 21 additions and 16 deletions

View File

@@ -23,7 +23,7 @@
#include "../standalone_libraries/table.hpp"
#define ARRAY_ASSERT IO_Assert
#define ARRAY_Allocator M_Allocator
#define ARRAY_REALLOCATE(allocator, p, size, old_size) M_ReallocNonZeroed(allocator, p, size, old_size)
#define ARRAY_REALLOCATE(allocator, p, size, old_size) M_Realloc(allocator, p, size, old_size)
#define ARRAY_DEALLOCATE(allocator, p) M_Dealloc(allocator, p)
#define ARRAY_SET_DEFAULT_ALLOCATOR \
if (!allocator.p) allocator = M_GetSystemAllocator();