Remove need for allocator and MAX_FRAMES in trace.frames

This commit is contained in:
gingerBill
2024-04-28 13:05:19 +01:00
parent be09584ea5
commit c0b7dd7da6
3 changed files with 16 additions and 18 deletions
+2 -3
View File
@@ -4,7 +4,6 @@ import "base:intrinsics"
import "base:runtime"
Frame :: distinct uintptr
MAX_FRAMES :: 512
Frame_Location :: struct {
using loc: runtime.Source_Code_Location,
@@ -32,8 +31,8 @@ destroy :: proc(ctx: ^Context) -> bool {
}
@(require_results)
frames :: proc(ctx: ^Context, skip: uint, allocator: runtime.Allocator) -> []Frame {
return _frames(ctx, skip, allocator)
frames :: proc(ctx: ^Context, skip: uint, frames_buffer: []Frame) -> []Frame {
return _frames(ctx, skip, frames_buffer)
}
@(require_results)