rename ARGS_GETXXX macros to avoid potential name conflict; close #1206

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-25 07:50:01 +09:00
parent 3083322088
commit 4faaef437d
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -140,9 +140,9 @@ mrb_proc_arity(mrb_state *mrb, mrb_value self)
mrb_aspec aspec = *iseq >> 6;
int ma, ra, pa, arity;
ma = ARGS_GETREQ(aspec);
ra = ARGS_GETREST(aspec);
pa = ARGS_GETPOST(aspec);
ma = MRB_ARGS_REQ(aspec);
ra = MRB_ARGS_REST(aspec);
pa = MRB_ARGS_POST(aspec);
arity = ra ? -(ma + pa + 1) : ma + pa;
return mrb_fixnum_value(arity);