summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2024-11-22 13:30:00 +0000
committerMatt Valentine-House <matt@eightbitraptor.com>2024-11-25 13:05:23 +0000
commit551be8219e8a4c5b0021716b047976d66feb3048 (patch)
treed4bf84657e5efa851bcf47996c18e717f0da41a0 /variable.c
parentd61933e5034248febeb22c18cb779c9348d2444e (diff)
Place all non-default GC API behind USE_SHARED_GC
So that it doesn't get included in the generated binaries for builds that don't support loading shared GC modules Co-Authored-By: Peter Zhu <peter@peterzhu.ca>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12149
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index bc255b6b5f..e7d2e35f7e 100644
--- a/variable.c
+++ b/variable.c
@@ -1065,6 +1065,12 @@ generic_ivtbl_no_ractor_check(VALUE obj)
return generic_ivtbl(obj, 0, false);
}
+struct st_table *
+rb_generic_ivtbl_get(void)
+{
+ return generic_iv_tbl_;
+}
+
int
rb_gen_ivtbl_get(VALUE obj, ID id, struct gen_ivtbl **ivtbl)
{