In this simple program:
const webui = @import("webui");
const std = @import("std");
fn println(e: *webui.Event) void {
std.debug.print("{s}\n", .{e.getString()});
}
pub fn main() !void {
var win = webui.newWindow();
_=try win.binding( "println", println);
try win.show("index.html");
webui.wait();
}
My terminal has a lot of verbose output:
[Core] _webui_free_mem(0x0x7046d0004ba0) -> Pointer #13 freed (56 + 1 bytes)
[Core] _webui_wv_event_closed()
[Core] _webui_ws_data_handler()
[Core] _webui_ws_close_handler()
[Core] _webui_receive([1], [3], [0])
How to turn verbose output off
In this simple program:
My terminal has a lot of verbose output:
[Core] _webui_free_mem(0x0x7046d0004ba0) -> Pointer #13 freed (56 + 1 bytes)
[Core] _webui_wv_event_closed()
[Core] _webui_ws_data_handler()
[Core] _webui_ws_close_handler()
[Core] _webui_receive([1], [3], [0])
How to turn verbose output off