From 9f1f2ff307bb3da8bfc6809ae05be589e1e37ed9 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 26 Oct 2021 08:55:12 +0200 Subject: Add OP_DROP and improve error reporting --- src/bytecode/debug.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bytecode/debug.h') diff --git a/src/bytecode/debug.h b/src/bytecode/debug.h index 1e0d4d6..8c4a2eb 100755 --- a/src/bytecode/debug.h +++ b/src/bytecode/debug.h @@ -39,6 +39,8 @@ static const char* ops_str[] = { // Procedures. [OP_CALL] = "OP_CALL", [OP_RETURN] = "OP_RETURN", + // Clear stack after each statement. + [OP_DROP] = "OP_DROP", }; void -- cgit v1.2.1