From 8c3037662ba572a6935170dbd4cb8cc8a3636417 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 22 Jun 2024 18:22:24 +0100 Subject: compilation of functions, and some parts of interpreting them --- dis.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dis.h') diff --git a/dis.h b/dis.h index 47aff62..8a26c8a 100644 --- a/dis.h +++ b/dis.h @@ -4,5 +4,7 @@ #include "vm.h" void disasm_chunk(Chunk *ch); +// returns length of disasmed instr in bytes +size_t disasm_instr(Chunk *ch, size_t ip); #endif -- cgit v1.2.3