aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
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 5663091..669fc78 100644
--- a/clox/src/debug.c
+++ b/clox/src/debug.c
@@ -44,6 +44,8 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return simpleInstruction("OP_FALSE", offset);
case OP_POP:
return simpleInstruction("OP_POP", offset);
+ case OP_GET_GLOBAL:
+ return constantInstruction("OP_GET_GLOBAL", chunk, offset);
case OP_DEFINE_GLOBAL:
return constantInstruction("OP_DEFINE_GLOBAL", chunk, offset);
case OP_EQUAL: