2nd order functions

This commit is contained in:
Stephen Dolan committed 2012-08-26 14:25:56 +01:00
1 parent befb103a12
commit a847d2250f
7 files changed
+82 -15

No files matched your search

+3
View File
@@ -13,6 +13,9 @@ static int bytecode_operation_length(uint16_t* codeptr) {
}
void dump_disassembly(int indent, struct bytecode* bc) {
if (bc->nclosures > 0) {
printf("%*s[params: %d]\n", indent, "", bc->nclosures);
}
dump_code(indent, bc);
for (int i=0; i<bc->nsubfunctions; i++) {
printf("%*ssubfn[%d]:\n", indent, "", i);