aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-10-21 19:51:01 -0700
committerGravatar Tom Willemse2021-10-21 19:51:01 -0700
commit26b418d25485f67b06fa70f3c32c151c26572f13 (patch)
tree01ebd410985d88a4a3aaec9267d6519da2ffa35b /clox/src/debug.c
parent7bd9934a4be7c22b8f464ab7a1cc243801b5957c (diff)
downloadcrafting-interpreters-26b418d25485f67b06fa70f3c32c151c26572f13.tar.gz
crafting-interpreters-26b418d25485f67b06fa70f3c32c151c26572f13.zip
Chapter 21
Diffstat (limited to 'clox/src/debug.c')
-rw-r--r--clox/src/debug.c2
1 files changed, 2 insertions, 0 deletions
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: