mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Change layout of Frame_Location
This commit is contained in:
@@ -6,11 +6,15 @@ import "base:runtime"
|
||||
Frame :: distinct uintptr
|
||||
MAX_FRAMES :: 64
|
||||
|
||||
Frame_Location :: runtime.Source_Code_Location
|
||||
Frame_Location :: struct {
|
||||
using loc: runtime.Source_Code_Location,
|
||||
allocator: runtime.Allocator,
|
||||
}
|
||||
|
||||
delete_frame_location :: proc(loc: Frame_Location, allocator: runtime.Allocator) -> runtime.Allocator_Error {
|
||||
delete(loc.procedure, allocator) or_return
|
||||
delete(loc.file_path, allocator) or_return
|
||||
delete_frame_location :: proc(fl: Frame_Location) -> runtime.Allocator_Error {
|
||||
allocator := fl.allocator
|
||||
delete(fl.loc.procedure, allocator) or_return
|
||||
delete(fl.loc.file_path, allocator) or_return
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user