diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2026-06-23 19:19:22 +0200 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2026-06-23 19:19:22 +0200 |
| commit | d19ad26fb451c4bf10b20d90483ac424a4dd9a57 (patch) | |
| tree | 21bc00ee2d1e82de4e72a9721bf4bafb23399e52 /src/zisp/io/Decoder.zig | |
| parent | c577aa7a2e2e1db245d20ca6ae23e4d630c51897 (diff) | |
Fix datum comment handling & tests.
Diffstat (limited to 'src/zisp/io/Decoder.zig')
| -rw-r--r-- | src/zisp/io/Decoder.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zisp/io/Decoder.zig b/src/zisp/io/Decoder.zig index ac39a02..f9d99e0 100644 --- a/src/zisp/io/Decoder.zig +++ b/src/zisp/io/Decoder.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("std"); const Alloc = std.mem.Allocator; @@ -16,8 +17,10 @@ pub fn init(alloc: Alloc) !Decoder { } pub fn decodeInPlace(d: *Decoder, v: Value) !Value { - std.debug.print("decode: ", .{}); - try io.printStdout(v); + if (!builtin.is_test) { + std.debug.print("decode: ", .{}); + io.printStdout(v) catch @panic("print error"); + } _ = d; return v; } |
