diff options
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; } |
