mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (process_options): --dump option exit immediately.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8afd39ad09
commit
75aa81b79d
1 changed files with 2 additions and 0 deletions
2
ruby.c
2
ruby.c
|
@ -1142,9 +1142,11 @@ process_options(VALUE arg)
|
|||
|
||||
iseq = rb_iseq_new(tree, rb_str_new2("<main>"),
|
||||
opt->script_name, Qfalse, ISEQ_TYPE_TOP);
|
||||
|
||||
if (opt->dump & DUMP_BIT(insns)) {
|
||||
rb_io_write(rb_stdout, ruby_iseq_disasm(iseq));
|
||||
rb_io_flush(rb_stdout);
|
||||
return Qtrue;
|
||||
}
|
||||
|
||||
return iseq;
|
||||
|
|
Loading…
Reference in a new issue