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:
Peter Zhu 2025-05-07 15:14:04 -04:00
parent 3f5080e767
commit c18bedcdbb
Notes: git 2025-05-08 14:36:40 +00:00

View File

@ -33,7 +33,13 @@
# include "probes.h"
#endif
#include "debug_counter.h"
#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"
#endif
#include "internal/sanitizers.h"
/* MALLOC_HEADERS_BEGIN */