mem: Remove comment about calling panic

The behavior is codified in the comment as returning `Invalid_Pointer`.
This commit is contained in:
Feoramund
2025-06-14 13:51:53 -04:00
parent aaeae8bc7d
commit c1e3171178

View File

@@ -979,7 +979,6 @@ stack_free :: proc(
header := (^Stack_Allocation_Header)(curr_addr - size_of(Stack_Allocation_Header))
old_offset := int(curr_addr - uintptr(header.padding) - uintptr(raw_data(s.data)))
if old_offset != s.prev_offset {
// panic("Out of order stack allocator free");
return .Invalid_Pointer
}