summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2021-01-14 21:56:44 +0000
committerAaron Patterson <aaron.patterson@gmail.com>2021-01-26 08:18:44 -0800
commit8a3f816675bfeb0ffd19471a8520200b3212d424 (patch)
tree916e7fa98d4e0e62a40b6a6518e006006cc626da /gc.c
parenta554e96a15ab1dfd86c6f125afc6356b8cc84a49 (diff)
Re-enable RGENGC_DEBUG for platforms with HAVE_VA_ARGS_MACRO
after this commit turned it off globally. 888cf28a7e3a07fc0a41688777a40910654005ad Co-authored-by: peterzhu2118 <peter@peterzhu.ca>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4073
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 9bee2467b6..e21c076ae7 100644
--- a/gc.c
+++ b/gc.c
@@ -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