12 alloc->
state = (
void *) 42;
void allocator_implementation(allocator *alloc, allocator_impl_destroy_fn destroy, allocator_impl_allocate_fn allocate, allocator_impl_free_fn free, allocator_impl_free_all_fn free_all)
Set allocator implementation.
void * memory_allocate(usize size)
Allocate memory.
void memory_free(void *mem, usize size)
Free memory.
Lightweight layer between platform and other engine components to enable tracing/monitoring.
#define UNUSED(x)
Mark parameter as unused.
#define KB_WARN(...)
Log entry with warn log level.
Central allocator structure.
void * state
Type specific state of the allocator.
void system_allocator_destroy(allocator *alloc)
void system_allocator_free_all(allocator *alloc)
void system_allocator_free(allocator *alloc, void *mem, usize size)
void * system_allocator_allocate(allocator *alloc, usize size)
b8 system_allocator_create(allocator *alloc, usize size)
Function signatures for system allocator implementation.