Assert on allocator ops that's not implemented
This commit is contained in:
@@ -102,6 +102,7 @@ static INLINE void *marena_allocator_func(Allocator *allocator, AllocOperation o
|
||||
return marena_push_aligned(allocator->data, size, align);
|
||||
|
||||
case Alloc_Op_Free: // can't free/Free_all from an marena
|
||||
NotImplemented;
|
||||
return NULL;
|
||||
|
||||
case Alloc_Op_Free_All:
|
||||
|
||||
Reference in New Issue
Block a user