mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
runtime: panic_allocator should use panic_allocator_proc
This commit is contained in:
@@ -35,7 +35,7 @@ nil_allocator :: proc() -> Allocator {
|
|||||||
when ODIN_OS == .Freestanding {
|
when ODIN_OS == .Freestanding {
|
||||||
default_allocator_proc :: nil_allocator_proc
|
default_allocator_proc :: nil_allocator_proc
|
||||||
default_allocator :: nil_allocator
|
default_allocator :: nil_allocator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -78,9 +78,7 @@ panic_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
|
|||||||
|
|
||||||
panic_allocator :: proc() -> Allocator {
|
panic_allocator :: proc() -> Allocator {
|
||||||
return Allocator{
|
return Allocator{
|
||||||
procedure = nil_allocator_proc,
|
procedure = panic_allocator_proc,
|
||||||
data = nil,
|
data = nil,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user