Default_Allocator module

is_this_yours

procedureSource

True if memory is a live allocation from heap.

Example↗
memory := allocator_proc(.ALLOCATE, 10, 0, null, null);
assert(is_this_yours(allocator_default_heap, memory));
allocator_proc(.FREE, 0, 10, memory, null);
is_this_yours :: (heap: *Heap, memory: *void) -> bool

Parameters

heap: *Heap
memory: *void

Returns

bool

See also