some rename

This commit is contained in:
2025-11-30 19:43:49 +01:00
parent 7f85664f13
commit 3e1565e67f
4 changed files with 30 additions and 20 deletions
+4 -4
View File
@@ -11,12 +11,12 @@ int main() {
allocator_alloc(allocator, 10);
}
assert(aalloc.total_allocated == 10);
assert(aalloc.to_allocate == 10);
assert(borrow_allocator_count_allocations(&aalloc.borrow_allocator) == 0);
assert(dyn_array_capacity(aalloc.bytes) == 10);
arena_allocator_destroy(&aalloc);
assert(aalloc.total_allocated == 0);
assert(aalloc.to_allocate == 0);
arena_allocator_destroy(&aalloc);
// test 2 //////////////////////////////////////////////////////////////////////
@@ -36,8 +36,8 @@ int main() {
}
}
arena_allocator_reset(&aalloc);
fprintf(stderr, "%zu\n", aalloc.total_allocated);
//assert(aalloc.total_allocated == MAX_ALIGN * 1000 + 1);
fprintf(stderr, "%zu\n", aalloc.to_allocate);
//assert(aalloc.to_allocate == MAX_ALIGN * 1000 + 1);
// TODO: WHAT is happening here?
arena_allocator_destroy(&aalloc);
}