refactor: export trace_to_json_file in zip api

This commit is contained in:
CJ van den Berg 2026-03-10 12:56:59 +01:00
parent a51c6c51fa
commit 639999f37e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -444,6 +444,10 @@ pub const env = struct {
} }
}; };
pub fn trace_to_json_file(path: [*:0]const u8) void {
c.thespian_trace_to_json_file(path);
}
pub fn trace(chan: trace_channel, value: anytype) void { pub fn trace(chan: trace_channel, value: anytype) void {
if (env.get().enabled(chan)) { if (env.get().enabled(chan)) {
if (@TypeOf(value) == message) { if (@TypeOf(value) == message) {