Browse Source

Add default debug/trace to do nothing

gingerBill 1 year ago
parent
commit
44c9b988bb
1 changed files with 18 additions and 0 deletions
  1. 18 0
      core/debug/trace/trace_nil.odin

+ 18 - 0
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
+}