diff options
author | 2022-08-13 12:20:00 -0700 | |
---|---|---|
committer | 2022-08-13 12:20:00 -0700 | |
commit | 07f691425c95a53323229accd8a907c5dea7e530 (patch) | |
tree | f19d102a75daa1ac1d73208cbd19e5fbe471c300 /clox/src/debug.c | |
parent | 4e77cfa61262a03055aeb273108fd9a49e8dfa4f (diff) | |
download | crafting-interpreters-07f691425c95a53323229accd8a907c5dea7e530.tar.gz crafting-interpreters-07f691425c95a53323229accd8a907c5dea7e530.zip |
Chapter 28.1
Diffstat (limited to 'clox/src/debug.c')
-rw-r--r-- | clox/src/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clox/src/debug.c b/clox/src/debug.c index fe96c3d..74be178 100644 --- a/clox/src/debug.c +++ b/clox/src/debug.c @@ -128,6 +128,8 @@ int disassembleInstruction(Chunk *chunk, int offset) { return simpleInstruction("OP_RETURN", offset); case OP_CLASS: return constantInstruction("OP_CLASS", chunk, offset); + case OP_METHOD: + return constantInstruction("OP_METHOD", chunk, offset); default: printf("Unknown opcode %d\n", instruction); return offset + 1; |