commit 9c017f776e4322d44deda0bc1e152dc556b757bb
parent 2f64b278e3a8a4bf480cd2c8d2d021eeb7f45d64
Author: Thomas Vigouroux <thomas.vigouroux@univ-grenoble-alpes.fr>
Date: Thu, 6 Jun 2024 16:20:19 +0200
fix: ensure that the stack is empty when finishing execution
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/main.zig b/src/main.zig
@@ -69,6 +69,7 @@ pub fn main() !void {
const result = try v.interpret(c);
defer result.unref();
std.log.info("Result: {f}", .{result.formatter()});
+ std.debug.assert(v.stack.items.len == 0);
}
}