File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,6 @@ rb_gc_guarded_ptr_val(volatile VALUE *ptr, VALUE val)
615615#endif
616616
617617static const char * obj_type_name (VALUE obj );
618- #define RB_AMALGAMATED_DEFAULT_GC
619618#include "gc/default/default.c"
620619
621620#if USE_SHARED_GC && !defined(HAVE_DLOPEN )
Original file line number Diff line number Diff line change 1010 */
1111#include "ruby/ruby.h"
1212
13+ #ifdef BUILDING_SHARED_GC
14+ # define GC_IMPL_FN
15+ #else
1316// `GC_IMPL_FN` is an implementation detail of `!USE_SHARED_GC` builds
1417// to have the default GC in the same translation unit as gc.c for
1518// the sake of optimizer visibility. It expands to nothing unless
1821// For the default GC, do not copy-paste this when implementing
1922// these functions. This takes advantage of internal linkage winning
2023// when appearing first. See C99 6.2.2p4.
21- #ifdef RB_AMALGAMATED_DEFAULT_GC
2224# define GC_IMPL_FN static
23- #else
24- # define GC_IMPL_FN
2525#endif
2626
2727// Bootup
You can’t perform that action at this time.
0 commit comments