summaryrefslogtreecommitdiff
path: root/vm_sync.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-25 17:09:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-25 18:04:25 +0900
commit975a6efd7ea144275d4774d18ff0f568c1a1dc97 (patch)
tree29654bf31c7a0628f3a5288a2c5ee75fbfec0e00 /vm_sync.h
parent566bdaef318674c416494786da551021afb1b5d7 (diff)
Suppress undef warnings for USE_RUBY_DEBUG_LOG
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5345
Diffstat (limited to 'vm_sync.h')
-rw-r--r--vm_sync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_sync.h b/vm_sync.h
index 4d83b5e52c..0969e5bfc9 100644
--- a/vm_sync.h
+++ b/vm_sync.h
@@ -4,7 +4,7 @@
#include "vm_debug.h"
#include "debug_counter.h"
-#if USE_RUBY_DEBUG_LOG
+#if defined(USE_RUBY_DEBUG_LOG) && USE_RUBY_DEBUG_LOG
#define LOCATION_ARGS const char *file, int line
#define LOCATION_PARAMS file, line
#define APPEND_LOCATION_ARGS , const char *file, int line