Skip to content

cf_allocator_restore_default

Category: allocator
GitHub: cute_alloc.h


Restores the default allocator.

void cf_allocator_restore_default();

Remarks

The default allocator simply calls malloc/free and friends. You may override this behavior by passing a CF_Allocator to this function. This lets you hook up your own custom allocator. Usually you only want to do this on certain platforms for performance optimizations, but is not a necessary thing to do for many games.

CF_Allocator
cf_allocator_override
cf_realloc
cf_alloc
cf_free
cf_calloc