mach: re-export log_level and scope_levels from App
This commit is contained in:
parent
e4cca0127e
commit
1b32552e73
2 changed files with 5 additions and 1 deletions
|
|
@ -8,6 +8,9 @@ const enums = @import("../enums.zig");
|
||||||
const util = @import("util.zig");
|
const util = @import("util.zig");
|
||||||
const c = @import("c.zig").c;
|
const c = @import("c.zig").c;
|
||||||
|
|
||||||
|
pub const scope_levels = if (@hasDecl(App, "scope_levels")) App.scope_levels else [0]std.log.ScopeLevel{};
|
||||||
|
pub const log_level = if (@hasDecl(App, "log_level")) App.log_level else std.log.default_level;
|
||||||
|
|
||||||
pub const Platform = struct {
|
pub const Platform = struct {
|
||||||
window: glfw.Window,
|
window: glfw.Window,
|
||||||
backend_type: gpu.Adapter.BackendType,
|
backend_type: gpu.Adapter.BackendType,
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,8 @@ export fn wasmDeinit() void {
|
||||||
app.deinit(&engine);
|
app.deinit(&engine);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const log_level = .info;
|
pub const log_level = if (@hasDecl(App, "log_level")) App.log_level else .info;
|
||||||
|
pub const scope_levels = if (@hasDecl(App, "scope_levels")) App.scope_levels else [0]std.log.ScopeLevel{};
|
||||||
|
|
||||||
const LogError = error{};
|
const LogError = error{};
|
||||||
const LogWriter = std.io.Writer(void, LogError, writeLog);
|
const LogWriter = std.io.Writer(void, LogError, writeLog);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue