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.
This commit is contained in:
卜部昌平 2020-08-17 13:51:23 +09:00
parent e2c2283a80
commit 6649677eb9
Notes: git 2020-08-19 14:31:23 +09:00
5 changed files with 55 additions and 5 deletions

View file

@ -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