tangled
alpha
login
or
join now
altagos.dev
/
pretty
0
fork
atom
A pretty printer for zig
zig
0
fork
atom
overview
issues
pulls
pipelines
expose innerFmt via runtime
altagos.dev
3 weeks ago
da8f80cb
eebc4326
verified
This commit was signed with the committer's
known signature
.
altagos.dev
SSH Key Fingerprint:
SHA256:UbTjEcCZlc6GzQWLCuDK3D//HESWD2xFPkzue9XMras=
+10
-1
1 changed file
expand all
collapse all
unified
split
pretty.zig
+10
-1
pretty.zig
···
142
.no_color = options.no_color,
143
};
144
145
-
return innerFmt(T, ctx, &run, this.value, .{});
146
}
147
};
148
}
···
163
164
pub inline fn write(this: *const Runtime, text: []const u8) error{WriteFailed}!void {
165
_ = try this.out.write(text);
0
0
0
0
0
0
0
0
0
166
}
167
168
pub inline fn setColor(
···
142
.no_color = options.no_color,
143
};
144
145
+
return run.pretty(ctx, this.value, .{});
146
}
147
};
148
}
···
163
164
pub inline fn write(this: *const Runtime, text: []const u8) error{WriteFailed}!void {
165
_ = try this.out.write(text);
166
+
}
167
+
168
+
pub fn pretty(
169
+
this: *const Runtime,
170
+
comptime ctx: Context,
171
+
value: anytype,
172
+
comptime opts: InnerFmtOptions,
173
+
) error{WriteFailed}!void {
174
+
return innerFmt(@TypeOf(value), ctx, this, value, opts);
175
}
176
177
pub inline fn setColor(