diff options
Diffstat (limited to 'dis.c')
-rw-r--r-- | dis.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -60,6 +60,11 @@ static size_t disasm_instr_h(Chunk *ch, size_t ip, int depth) { printf("call #%hhu\n",nargs); break; } + case OP_TAILCALL: { + uint8_t nargs = ch->bc.d[ip++]; + printf("\033[31mtailcall\033[0m #%hhu\n",nargs); + break; + } case OP_ENDSCOPE: { uint8_t nlocals = ch->bc.d[ip++]; printf("endscope #%hhu\n",nlocals); @@ -107,7 +112,6 @@ static size_t disasm_instr_h(Chunk *ch, size_t ip, int depth) { default: printf("unknown opcode %d\n", instr); - exit(2); } |