aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index ca2a389af2..eb0a0736b2 100644
--- a/gc.c
+++ b/gc.c
@@ -8975,6 +8975,17 @@ obj_info(VALUE obj)
}
#endif
+const char *
+rb_obj_info(VALUE obj)
+{
+ if (!rb_special_const_p(obj)) {
+ return obj_info(obj);
+ }
+ else {
+ return obj_type_name(obj);
+ }
+}
+
#if GC_DEBUG
void