From 26b418d25485f67b06fa70f3c32c151c26572f13 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 21 Oct 2021 19:51:01 -0700 Subject: Chapter 21 --- clox/src/debug.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clox/src/debug.c') diff --git a/clox/src/debug.c b/clox/src/debug.c index 669fc78..61deb52 100644 --- a/clox/src/debug.c +++ b/clox/src/debug.c @@ -48,6 +48,8 @@ int disassembleInstruction(Chunk *chunk, int offset) { return constantInstruction("OP_GET_GLOBAL", chunk, offset); case OP_DEFINE_GLOBAL: return constantInstruction("OP_DEFINE_GLOBAL", chunk, offset); + case OP_SET_GLOBAL: + return constantInstruction("OP_SET_GLOBAL", chunk, offset); case OP_EQUAL: return simpleInstruction("OP_EQUAL", offset); case OP_GREATER: -- cgit v1.2.3-54-g00ecf