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

ruby-changes:60154

From: Koichi <ko1@a...>
Date: Sat, 22 Feb 2020 03:00:06 +0900 (JST)
Subject: [ruby-changes:60154] a1eb1fabef (master): use RUBY_FUNCTION_NAME_STRING instead of __func__ for rp()

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

From a1eb1fabef1bca0696449cd358d93f5a644d5914 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Sat, 22 Feb 2020 02:59:46 +0900
Subject: use RUBY_FUNCTION_NAME_STRING instead of __func__ for rp()


diff --git a/internal.h b/internal.h
index 4d95fe7..e32bf82 100644
--- a/internal.h
+++ b/internal.h
@@ -86,7 +86,7 @@ void ruby_debug_breakpoint(void); https://github.com/ruby/ruby/blob/trunk/internal.h#L86
 PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
 
 // show obj data structure without any side-effect
-#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, __func__)
+#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
 
 // same as rp, but add message header
 #define rp_m(msg, obj) do { \
-- 
cgit v0.10.2


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

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