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 fff2c268c2
commit 734bb6c784
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -448,6 +448,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 {
if (env.get().enabled(chan)) {
if (@TypeOf(value) == message) {