diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-17 13:51:23 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-19 14:30:57 +0900 |
commit | 6649677eb93a101a5411a942ca1b84b541262537 (patch) | |
tree | 63c8e41c4bcb5ffed7782ca1651b3019796c5276 /internal.h | |
parent | e2c2283a80843f6011a3d7665725ff0c5aed27c5 (diff) |
ROBJECT_IV_INDEX_TBL: convert into an inline function
Former ROBJECT_IV_INDEX_TBL macro included RCLASS_IV_INDEX_TBL, which is
not disclosed to extension libraies. The macro was kind of broken. Why
not just deprecate it, and convert the internal use into an inline
function.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3427
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 303029ac60..9d4478b0ca 100644 --- a/internal.h +++ b/internal.h @@ -47,6 +47,9 @@ #undef RHASH_IFNONE #undef RHASH_SIZE +/* internal/object.h */ +#undef ROBJECT_IV_INDEX_TBL + /* internal/struct.h */ #undef RSTRUCT_LEN #undef RSTRUCT_PTR |