diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-25 07:50:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-25 07:50:01 +0900 |
| commit | 4faaef437d614ad270f646ccbd5a80fd80d4359e (patch) | |
| tree | f277753d0b838e0403d25dbf270ac4c51483ef11 /src/proc.c | |
| parent | 3083322088bfd486d11dbe1434b60294e7737372 (diff) | |
| download | mruby-4faaef437d614ad270f646ccbd5a80fd80d4359e.tar.gz mruby-4faaef437d614ad270f646ccbd5a80fd80d4359e.zip | |
rename ARGS_GETXXX macros to avoid potential name conflict; close #1206
Diffstat (limited to 'src/proc.c')
| -rw-r--r-- | src/proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proc.c b/src/proc.c index 8ddb06695..69a2d4449 100644 --- a/src/proc.c +++ b/src/proc.c @@ -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); |
