aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-08-14 20:14:43 -0700
committerGravatar Tom Willemse2022-08-14 20:14:43 -0700
commit726803c9d0c84bccc1d82d1c8aeadfc711752622 (patch)
tree2f90b75390ceb2a66133cbebce805086175fbeda /clox/src/debug.c
parent62858b60e43803477e898c7993e109a94701ce70 (diff)
downloadcrafting-interpreters-726803c9d0c84bccc1d82d1c8aeadfc711752622.tar.gz
crafting-interpreters-726803c9d0c84bccc1d82d1c8aeadfc711752622.zip
Chapter 29.1
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 079f0e9..4a39811 100644
--- a/clox/src/debug.c
+++ b/clox/src/debug.c
@@ -139,6 +139,8 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return simpleInstruction("OP_RETURN", offset);
case OP_CLASS:
return constantInstruction("OP_CLASS", chunk, offset);
+ case OP_INHERIT:
+ return simpleInstruction("OP_INHERIT", offset);
case OP_METHOD:
return constantInstruction("OP_METHOD", chunk, offset);
default: