[前][次][番号順一覧][スレッド一覧]

ruby-changes:72718

From: Nobuyoshi <ko1@a...>
Date: Thu, 28 Jul 2022 16:28:06 +0900 (JST)
Subject: [ruby-changes:72718] 2b9374768f (master): `RUBY_DEBUG_LOG2` should filter against the given `file`

https://git.ruby-lang.org/ruby.git/commit/?id=2b9374768f

From 2b9374768f9f93129e5c4b7aaedfa785d041cbb1 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 28 Jul 2022 09:17:59 +0900
Subject: `RUBY_DEBUG_LOG2` should filter against the given `file`

---
 vm_debug.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vm_debug.h b/vm_debug.h
index ead1c7c10a..5956105648 100644
--- a/vm_debug.h
+++ b/vm_debug.h
@@ -100,7 +100,7 @@ bool ruby_debug_log_filter(const char *func_name, const char *file_name); https://github.com/ruby/ruby/blob/trunk/vm_debug.h#L100
 } while (0)
 
 #define RUBY_DEBUG_LOG2(file, line, ...) do { \
-    if (RUBY_DEBUG_LOG_ENABLED(RUBY_FUNCTION_NAME_STRING, __FILE__)) \
+    if (RUBY_DEBUG_LOG_ENABLED(RUBY_FUNCTION_NAME_STRING, file)) \
         ruby_debug_log(file, line, RUBY_FUNCTION_NAME_STRING, "" __VA_ARGS__); \
 } while (0)
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]