aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 0167fd8dcb..cd67c53663 100644
--- a/symbol.c
+++ b/symbol.c
@@ -864,6 +864,12 @@ rb_sym_all_symbols(void)
return ary;
}
+size_t
+rb_sym_immortal_count(void)
+{
+ return (size_t)global_symbols.last_id;
+}
+
int
rb_is_const_id(ID id)
{