diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-14 14:45:23 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-15 12:09:26 +0900 |
commit | ff30358d13d24d8202f2717c43700be70bdd49d3 (patch) | |
tree | 32757f4895a67fefcfb4830e40e2206a7ac388f7 /internal.h | |
parent | 72d0f2f0e0546a4c7c3b9ec85d3f67a36e9c5038 (diff) |
RARRAY_AREF: convert into an inline function
RARRAY_AREF has been a macro for reasons. We might not be able to
change that for public APIs, but why not relax the situation internally
to make it an inline function.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3419
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index da0dab5e7e..303029ac60 100644 --- a/internal.h +++ b/internal.h @@ -31,6 +31,9 @@ /* Following macros were formerly defined in this header but moved to somewhere * else. In order to detect them we undef here. */ +/* internal/array.h */ +#undef RARRAY_AREF + /* internal/class.h */ #undef RClass #undef RCLASS_SUPER |