Skip to content

Commit 6d8f97f

Browse files
committed
wasmer: support setup_tracing
1 parent ceac7bb commit 6d8f97f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wasmer.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ pub fn detectWasmerLibDir(allocator: std.mem.Allocator) !?[]const u8 {
5252
return try allocator.dupe(u8, std.mem.trimRight(u8, stdout_res, "\r\n"));
5353
}
5454

55+
pub fn setupTracing(verbosity_level: usize, use_colors: usize) void {
56+
wasmer_setup_tracing(@as(c_int, @intCast(verbosity_level)), @as(c_int, @intCast(use_colors)));
57+
}
58+
59+
pub extern "c" fn wasmer_setup_tracing(c_int, c_int) void;
60+
5561
pub fn lastError(allocator: std.mem.Allocator) ![:0]u8 {
5662
const buf_len = @as(usize, @intCast(wasmer_last_error_length()));
5763
const buf = try allocator.alloc(u8, buf_len);

0 commit comments

Comments
 (0)