aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-06-02 22:27:43 -0700
committerGravatar Tom Willemse2022-06-02 22:27:43 -0700
commit57ed9226c06b5fbe016e62857fe9662c51da3dfd (patch)
treef8bdae71c33f92ba1e105612ee848fcf168d3777 /clox/src/debug.c
parente74cbddb0463e93f5d9742accc20bbed027d0b9b (diff)
downloadcrafting-interpreters-57ed9226c06b5fbe016e62857fe9662c51da3dfd.tar.gz
crafting-interpreters-57ed9226c06b5fbe016e62857fe9662c51da3dfd.zip
Chapter 25.3 & 25.4
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 f175030..750fdb9 100644
--- a/clox/src/debug.c
+++ b/clox/src/debug.c
@@ -118,6 +118,8 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return offset;
}
+ case OP_CLOSE_UPVALUE:
+ return simpleInstruction("OP_CLOSE_UPVALUE", offset);
case OP_RETURN:
return simpleInstruction("OP_RETURN", offset);
default: