aboutsummaryrefslogtreecommitdiff
path: root/src/z/env/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-06 15:08:13 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-06 15:08:13 +0200
commit12a02f161504b49a54243bed996df6b44e25b7b4 (patch)
tree5aa9d142a6faba51730d0eeb69ffc0a0766d21c6 /src/z/env/root.zig
parenta4b2398aba2211ce5901ceb46f73057864bd1707 (diff)
refactor wasm
Diffstat (limited to 'src/z/env/root.zig')
-rw-r--r--src/z/env/root.zig34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/z/env/root.zig b/src/z/env/root.zig
deleted file mode 100644
index 3ceac84..0000000
--- a/src/z/env/root.zig
+++ /dev/null
@@ -1,34 +0,0 @@
-const std = @import("std");
-
-pub const console = @import("console.zig");
-
-pub fn logFn(
- comptime level: std.log.Level,
- comptime scope: @EnumLiteral(),
- comptime format: []const u8,
- args: anytype,
-) void {
- var buffer: [1024]u8 = undefined;
- var writer: std.Io.Writer = .fixed(&buffer);
-
- const func = switch (level) {
- .err => console.err,
- .warn => console.warn,
- .info => console.log,
- .debug => console.debug,
- };
-
- if (scope != .default) {
- writer.print("[{s}]: ", .{@tagName(scope)}) catch unreachable;
- }
- writer.print(format, args) catch unreachable;
-
- func(writer.buffered());
-}
-
-fn defaultPanic(msg: []const u8, _: ?usize) noreturn {
- console.err(msg);
- @trap();
-}
-
-pub const panic = std.debug.FullPanic(defaultPanic);