From 3706f0c2e0910395c88fc39fe2301f4fd84d5b41 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 24 Nov 2023 12:14:11 -0800 Subject: [PATCH] tracer added a fmt param --- src/lib.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index 7a5fecdd60c83e92afbe332a9028127c5f6dbb04..56b9659d1390c60f3b7dd0e2961517f1cf3f1bd8 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -21,7 +21,7 @@ pub fn parse(comptime input: string) astgen.Value { } pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype) !void { - const t = tracer.trace(@src()); + const t = tracer.trace(@src(), "", .{}); defer t.end(); try writer.writeAll("\n"); @@ -34,7 +34,7 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co } pub fn compileInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, comptime opts: DoOptions, data: anytype) !void { - const t = tracer.trace(@src()); + const t = tracer.trace(@src(), "", .{}); defer t.end(); try do(alloc, writer, value, data, data, opts); @@ -44,7 +44,7 @@ pub fn compileInner(alloc: std.mem.Allocator, writer: anytype, comptime value: a pub const Writer = std.ArrayList(u8).Writer; fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions) anyerror!void { - const t = tracer.trace(@src()); + const t = tracer.trace(@src(), "", .{}); defer t.end(); switch (comptime value) { @@ -342,7 +342,7 @@ fn Field(comptime T: type, comptime field_name: string) type { } pub fn writeEscaped(s: string, writer: anytype) !void { - const t = tracer.trace(@src()); + const t = tracer.trace(@src(), "", .{}); defer t.end(); const view = std.unicode.Utf8View.initUnchecked(s); @@ -427,7 +427,7 @@ fn contains(haystack: []const string, needle: string) bool { } fn doif(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, comptime bottom: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions, flag2: bool) anyerror!void { - const t = tracer.trace(@src()); + const t = tracer.trace(@src(), "", .{}); defer t.end(); if (flag2) { @@ -438,7 +438,7 @@ fn doif(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, c } fn docap(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, comptime bottom: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions, flag2: anytype) anyerror!void { - const t = tracer.trace(@src()); + const t = tracer.trace(@src(), "", .{}); defer t.end(); if (flag2) |_| { -- 2.54.0