call codedump_all() from mirb if --verbose is set; close #1559

parent 3bbf66f9
......@@ -236,6 +236,8 @@ print_cmdline(int code_block_open)
}
}
void codedump_all(mrb_state*, struct RProc*);
int
main(int argc, char **argv)
{
......@@ -365,6 +367,9 @@ main(int argc, char **argv)
/* generate bytecode */
struct RProc *proc = mrb_generate_code(mrb, parser);
if (args.verbose) {
codedump_all(mrb, proc);
}
/* pass a proc for evaulation */
nregs = first_command ? 0: proc->body.irep->nregs;
/* evaluate the bytecode */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment