summaryrefslogtreecommitdiff
path: root/vm_debug.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-25 17:09:19 +0900
committerNARUSE, Yui <naruse@airemix.jp>2021-12-25 18:39:24 +0900
commit12bbae2d4e8dc9cadeb69bf9a2459c510fa2bba5 (patch)
treebc5bd529f7c7aba866d5f18b669d62905aa401b9 /vm_debug.h
parent17b48db00f6248fcd42ced7b398f1dcc36ec4dca (diff)
Suppress undef warnings for USE_RUBY_DEBUG_LOG
(cherry picked from commit 975a6efd7ea144275d4774d18ff0f568c1a1dc97)
Diffstat (limited to 'vm_debug.h')
-rw-r--r--vm_debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_debug.h b/vm_debug.h
index fa70de334d..803a7ccf4b 100644
--- a/vm_debug.h
+++ b/vm_debug.h
@@ -101,7 +101,7 @@ bool ruby_debug_log_filter(const char *func_name);
// You can use this macro for temporary usage (you should not commit it).
#define _RUBY_DEBUG_LOG(...) ruby_debug_log(__FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING, "" __VA_ARGS__)
-#if USE_RUBY_DEBUG_LOG
+#if defined(USE_RUBY_DEBUG_LOG) && USE_RUBY_DEBUG_LOG
# define RUBY_DEBUG_LOG_ENABLED(func_name) \
(ruby_debug_log_mode && ruby_debug_log_filter(func_name))