summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/object.c b/object.c
index 9fb14817cd..08fec850d3 100644
--- a/object.c
+++ b/object.c
@@ -320,6 +320,14 @@ rb_obj_singleton_class(VALUE obj)
return rb_singleton_class(obj);
}
+struct st_table *
+rb_obj_iv_index_tbl(const struct RObject *obj)
+{
+ /* This is a function that practically never gets used. Just to keep
+ * backwards compatibility to ruby 2.x. */
+ return ROBJECT_IV_INDEX_TBL((VALUE)obj);
+}
+
/*! \private */
MJIT_FUNC_EXPORTED void
rb_obj_copy_ivar(VALUE dest, VALUE obj)