summaryrefslogtreecommitdiff
path: root/dis.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-22 18:22:24 +0100
committerubq323 <ubq323@ubq323.website>2024-06-22 18:22:24 +0100
commit8c3037662ba572a6935170dbd4cb8cc8a3636417 (patch)
tree1d585a5f0eab8eed96d0741421656f11c99c7c33 /dis.h
parent1d496f5f7f01b20fb34e63d1c85a33d8decd1894 (diff)
compilation of functions, and some parts of interpreting them
Diffstat (limited to 'dis.h')
-rw-r--r--dis.h2
1 files changed, 2 insertions, 0 deletions
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