From 44c9b988bbc54203307d50418c79188aee53c08c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 28 Apr 2024 12:05:15 +0100 Subject: [PATCH] Add default debug/trace to do nothing --- core/debug/trace/trace_nil.odin | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/debug/trace/trace_nil.odin diff --git a/core/debug/trace/trace_nil.odin b/core/debug/trace/trace_nil.odin new file mode 100644 index 000000000..ab08aee04 --- /dev/null +++ b/core/debug/trace/trace_nil.odin @@ -0,0 +1,18 @@ +//+build !windows +package debug_trace + +_Context :: struct { +} + +_init :: proc(ctx: ^Context) -> (ok: bool) { + return true +} +_destroy :: proc(ctx: ^Context) -> bool { + return true +} +_frames :: proc(ctx: ^Context, skip: uint, allocator: runtime.Allocator) -> []Frame { + return nil +} +_resolve :: proc(ctx: ^Context, frame: Frame, allocator: runtime.Allocator) -> (result: runtime.Source_Code_Location) { + return +}