mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
mem: Remove comment about calling panic
The behavior is codified in the comment as returning `Invalid_Pointer`.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user