1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Re-enable RGENGC_DEBUG for platforms with HAVE_VA_ARGS_MACRO

after this commit turned it off globally.

888cf28a7e

Co-authored-by: peterzhu2118 <peter@peterzhu.ca>
This commit is contained in:
Matt Valentine-House 2021-01-14 21:56:44 +00:00 committed by Aaron Patterson
parent a554e96a15
commit 8a3f816675
Notes: git 2021-01-27 01:19:06 +09:00

2
gc.c
View file

@ -377,6 +377,8 @@ static ruby_gc_params_t gc_params = {
#endif
#if RGENGC_DEBUG < 0 && !defined(_MSC_VER)
# define RGENGC_DEBUG_ENABLED(level) (-(RGENGC_DEBUG) >= (level) && ruby_rgengc_debug >= (level))
#elif HAVE_VA_ARGS_MACRO
# define RGENGC_DEBUG_ENABLED(level) ((RGENGC_DEBUG) >= (level))
#else
# define RGENGC_DEBUG_ENABLED(level) 0
#endif