refactor: export trace_to_json_file in zip api
This commit is contained in:
parent
fff2c268c2
commit
734bb6c784
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue