mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +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))
|
header := (^Stack_Allocation_Header)(curr_addr - size_of(Stack_Allocation_Header))
|
||||||
old_offset := int(curr_addr - uintptr(header.padding) - uintptr(raw_data(s.data)))
|
old_offset := int(curr_addr - uintptr(header.padding) - uintptr(raw_data(s.data)))
|
||||||
if old_offset != s.prev_offset {
|
if old_offset != s.prev_offset {
|
||||||
// panic("Out of order stack allocator free");
|
|
||||||
return .Invalid_Pointer
|
return .Invalid_Pointer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user