#include "allocator.h" #include void *Alloc(struct Pool *pool, usize n, usize size) { void *ptr = (u8 *)pool->memory + pool->allocated; pool->allocated += n * size; }