From 97a17a51b8e6eca31fd6421511f1907e6e95b415 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 13 Dec 2019 17:26:12 +0900 Subject: readable function names for inline functions. Now, C functions written by __builtin_cexpr!(code) and others are named as "__builtin_inline#{n}". However, it is difficult to know what the function is. This patch rename them into "__builtin_foo_#{lineno}" when cexpr! is in 'foo' method. --- builtin.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'builtin.h') diff --git a/builtin.h b/builtin.h index 0d2b13e290..f4d485e08d 100644 --- a/builtin.h +++ b/builtin.h @@ -13,7 +13,12 @@ struct rb_builtin_function { const char * const name; }; -#define RB_BUILTIN_FUNCTION(_i, _name, _arity) { .name = #_name, .func_ptr = (void *)_name, .argc = _arity, .index = _i } +#define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity) { \ + .name = #_name, \ + .func_ptr = (void *)_fname, \ + .argc = _arity, \ + .index = _i \ +} void rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin_function *table); -- cgit v1.2.1