diff options
author | Koichi Sasada <[email protected]> | 2019-12-13 17:26:12 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-12-13 17:55:45 +0900 |
commit | 97a17a51b8e6eca31fd6421511f1907e6e95b415 () | |
tree | a5ed30bd4542954dc3473b3011068241c02749d2 /mini_builtin.c | |
parent | 1140625cd31f7ad74c42dc625b9dab389b12653c (diff) |
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 rename them into "__builtin_foo_#{lineno}" when cexpr! is in 'foo' method.
-rw-r--r-- | mini_builtin.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -18,8 +18,10 @@ builtin_iseq_load(const char *feature_name, const struct rb_builtin_function *ta { VALUE name_str = 0; rb_ast_t *ast = rb_builtin_ast(feature_name, &name_str); - GET_VM()->builtin_function_table = table; const rb_iseq_t *iseq = rb_iseq_new(&ast->body, name_str, name_str, Qnil, NULL, ISEQ_TYPE_TOP); GET_VM()->builtin_function_table = NULL; |