summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-02-21 17:59:46 (GMT)
committerKoichi Sasada <ko1@atdot.net>2020-02-21 17:59:46 (GMT)
commita1eb1fabef1bca0696449cd358d93f5a644d5914 (patch)
tree6660f32af98b007cdb0b7fa649b86280f4a9ef6b
parent5a89c05773da29c242c222fa3af64703f5aff88b (diff)
use RUBY_FUNCTION_NAME_STRING instead of __func__ for rp()
-rw-r--r--internal.h2
1 files changed, 1 insertions, 1 deletions
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);
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 { \