This commit is contained in:
Nils O. Selåsdal
2026-06-22 00:25:17 +02:00
parent 368225ad66
commit f8d9c3bc7e
+3 -5
View File
@@ -248,17 +248,15 @@ void miniarena_test1(void)
Assert(arena.first_free == arena_size);
MemoryZero(ptr, arena_size);
marena_temp_end(&checkpoint);
Assert(arena.first_free == 0);
U32 *val = marena_push_type(&arena, U32);
*val = 0xa0b0c0d0;
printf("marena val %u\n", *val);
printf("miniarena_test1,size %u bytes first_free %u\n", arena.size, arena.first_free);
Assert(arena.first_free == 0);
Assert(arena.first_free == sizeof(U32));
}
typedef struct PoolTest PoolTest;
struct PoolTest{
U32 n;