blob: bffe5e4b7c84b4fae0ef40c44dbb2fde57b37f04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// This is the main file for the WASM module. The WASM module has to
// export a C ABI compatible API.
const std = @import("std");
const builtin = @import("builtin");
comptime {
_ = @import("os/wasm.zig");
_ = @import("font/main.zig");
_ = @import("terminal/main.zig");
_ = @import("config.zig").Wasm;
_ = @import("App.zig").Wasm;
}
pub const std_options = struct {
// Set our log level. We try to get as much logging as possible but in
// ReleaseSmall mode where we're optimizing for space, we elevate the
// log level.
pub const log_level: std.log.Level = switch (builtin.mode) {
.Debug => .debug,
.ReleaseSmall => .warn,
else => .info,
};
// Set our log function
pub const logFn = @import("os/wasm/log.zig").log;
};
|