aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-01-12 23:09:36 -0800
committerGravatar Tom Willemse2022-01-12 23:09:36 -0800
commit37ac05af6d0aa57ccc5ea805af262a407fedeeae (patch)
treecb188b2af41728de22789602190508b281932cd1 /clox/src/debug.c
parentba6ab6759e4257e543ca5da4caf2705711e5b3ed (diff)
downloadcrafting-interpreters-37ac05af6d0aa57ccc5ea805af262a407fedeeae.tar.gz
crafting-interpreters-37ac05af6d0aa57ccc5ea805af262a407fedeeae.zip
Chapter 23.3
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 b3f756a..3f3c289 100644
--- a/clox/src/debug.c
+++ b/clox/src/debug.c
@@ -92,6 +92,8 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return jumpInstruction("OP_JUMP", 1, chunk, offset);
case OP_JUMP_IF_FALSE:
return jumpInstruction("OP_JUMP_IF_FALSE", 1, chunk, offset);
+ case OP_LOOP:
+ return jumpInstruction("OP_LOOP", -1, chunk, offset);
case OP_RETURN:
return simpleInstruction("OP_RETURN", offset);
default: