summaryrefslogtreecommitdiff
path: root/dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'dis.c')
-rw-r--r--dis.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/dis.c b/dis.c
index ba0e1db..5097b05 100644
--- a/dis.c
+++ b/dis.c
@@ -87,6 +87,17 @@ void disasm_chunk(Chunk *ch) {
}
}
+ printf("\n");
+
+ for (uint8_t cix = 0; cix < ch->consts.len; cix++) {
+ Val c = ch->consts.d[cix];
+ if (IS_FUNC(c)) {
+ printf("const %d is function:\n", cix);
+ disasm_chunk(&AS_FUNC(c)->chunk);
+ }
+ }
+
+
}