mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Remove dependency on debug_counter.h when BUILDING_MODULAR_GC
This allows the default GC to not need debug_counter.h when building as a modular GC.
This commit is contained in:
parent
3f5080e767
commit
c18bedcdbb
Notes:
git
2025-05-08 14:36:40 +00:00
1 changed files with 7 additions and 1 deletions
|
@ -33,7 +33,13 @@
|
||||||
# include "probes.h"
|
# include "probes.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BUILDING_MODULAR_GC
|
||||||
|
# define RB_DEBUG_COUNTER_INC(_name) ((void)0)
|
||||||
|
# define RB_DEBUG_COUNTER_INC_IF(_name, cond) (!!(cond))
|
||||||
|
#else
|
||||||
# include "debug_counter.h"
|
# include "debug_counter.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "internal/sanitizers.h"
|
#include "internal/sanitizers.h"
|
||||||
|
|
||||||
/* MALLOC_HEADERS_BEGIN */
|
/* MALLOC_HEADERS_BEGIN */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue