From a819a85209646cb7dba87c49e904dd47cc804133 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 12 Aug 2022 21:17:45 -0700 Subject: Chapter 27.2 --- clox/src/debug.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clox/src/debug.c') diff --git a/clox/src/debug.c b/clox/src/debug.c index 750fdb9..a2c2c53 100644 --- a/clox/src/debug.c +++ b/clox/src/debug.c @@ -122,6 +122,8 @@ int disassembleInstruction(Chunk *chunk, int offset) { return simpleInstruction("OP_CLOSE_UPVALUE", offset); case OP_RETURN: return simpleInstruction("OP_RETURN", offset); + case OP_CLASS: + return constantInstruction("OP_CLASS", chunk, offset); default: printf("Unknown opcode %d\n", instruction); return offset + 1; -- cgit v1.2.3-54-g00ecf