Commit 0e6a93a9 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Use `MRB_ASPEC_XXX()` macro in `codedump()`

parent 0e704d19
......@@ -266,13 +266,13 @@ codedump(mrb_state *mrb, mrb_irep *irep)
break;
CASE(OP_ENTER, W):
printf("OP_ENTER\t%d:%d:%d:%d:%d:%d:%d\n",
(a>>18)&0x1f,
(a>>13)&0x1f,
(a>>12)&0x1,
(a>>7)&0x1f,
(a>>2)&0x1f,
(a>>1)&0x1,
a & 0x1);
MRB_ASPEC_REQ(a),
MRB_ASPEC_OPT(a),
MRB_ASPEC_REST(a),
MRB_ASPEC_POST(a),
MRB_ASPEC_KEY(a),
MRB_ASPEC_KDICT(a),
MRB_ASPEC_BLOCK(a));
break;
CASE(OP_KEY_P, BB):
printf("OP_KEY_P\tR%d\t:%s\t", a, mrb_sym2name(mrb, irep->syms[b]));
......
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