authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-11-24 12:14:11 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-11-24 12:14:11 -08:00
log3706f0c2e0910395c88fc39fe2301f4fd84d5b41
treea2e2cac5edadfe46c2fa6a5fe3e579d496e87a4d
parent642f1100f24f0bbab22fa458693870e33d40a3d1

tracer added a fmt param


1 files changed, 6 insertions(+), 6 deletions(-)

src/lib.zig+6-6
......@@ -21,7 +21,7 @@ pub fn parse(comptime input: string) astgen.Value {
2121}
2222
2323pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype) !void {
24 const t = tracer.trace(@src());
24 const t = tracer.trace(@src(), "", .{});
2525 defer t.end();
2626
2727 try writer.writeAll("<!DOCTYPE html>\n");
......@@ -34,7 +34,7 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co
3434}
3535
3636pub fn compileInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, comptime opts: DoOptions, data: anytype) !void {
37 const t = tracer.trace(@src());
37 const t = tracer.trace(@src(), "", .{});
3838 defer t.end();
3939
4040 try do(alloc, writer, value, data, data, opts);
......@@ -44,7 +44,7 @@ pub fn compileInner(alloc: std.mem.Allocator, writer: anytype, comptime value: a
4444pub const Writer = std.ArrayList(u8).Writer;
4545
4646fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions) anyerror!void {
47 const t = tracer.trace(@src());
47 const t = tracer.trace(@src(), "", .{});
4848 defer t.end();
4949
5050 switch (comptime value) {
......@@ -342,7 +342,7 @@ fn Field(comptime T: type, comptime field_name: string) type {
342342}
343343
344344pub fn writeEscaped(s: string, writer: anytype) !void {
345 const t = tracer.trace(@src());
345 const t = tracer.trace(@src(), "", .{});
346346 defer t.end();
347347
348348 const view = std.unicode.Utf8View.initUnchecked(s);
......@@ -427,7 +427,7 @@ fn contains(haystack: []const string, needle: string) bool {
427427}
428428
429429fn 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 {
430 const t = tracer.trace(@src());
430 const t = tracer.trace(@src(), "", .{});
431431 defer t.end();
432432
433433 if (flag2) {
......@@ -438,7 +438,7 @@ fn doif(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, c
438438}
439439
440440fn 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 {
441 const t = tracer.trace(@src());
441 const t = tracer.trace(@src(), "", .{});
442442 defer t.end();
443443
444444 if (flag2) |_| {