Skip to content

Commit

Permalink
iseq.c: keyword arguments
Browse files Browse the repository at this point in the history
* iseq.c (rb_iseq_disasm): show keyword arguments info, in format
  "keyword: NUM@LIDX".

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 6, 2013
1 parent 5c1af05 commit 5f5d915
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,10 +1391,11 @@ rb_iseq_disasm(VALUE self)
if (tbl) {
rb_str_catf(str,
"local table (size: %d, argc: %d "
"[opts: %d, rest: %d, post: %d, block: %d] s%d)\n",
"[opts: %d, rest: %d, post: %d, block: %d, keyword: %d@%d] s%d)\n",
iseqdat->local_size, iseqdat->argc,
iseqdat->arg_opts, iseqdat->arg_rest,
iseqdat->arg_post_len, iseqdat->arg_block,
iseqdat->arg_keywords, iseqdat->arg_keyword,
iseqdat->arg_simple);

for (i = 0; i < iseqdat->local_table_size; i++) {
Expand Down

0 comments on commit 5f5d915

Please sign in to comment.