diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-11-08 11:11:21 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-11-08 11:12:01 +0900 |
commit | 766115010932d977142097f60c76dd20af73196e (patch) | |
tree | d832b10d24eb11076d427d0431adb7f5f937d557 /compile.c | |
parent | a1a08ac9aabdde2cc8406f5210848a4885d14b52 (diff) |
revival of __func__
dad2abc69fdd1af52df353b8604017bd6a5c6a99 deleted __func__ but ruby
already use this feature under RUBY_FUNCTION_NAME_STRING macro.
Use it.
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9769,9 +9769,9 @@ ibf_load_builtin(const struct ibf_load *load, ibf_offset_t *offset) } const struct rb_builtin_function *table = GET_VM()->builtin_function_table; - if (table == NULL) rb_bug("ibf_load_builtin: table is not provided."); + if (table == NULL) rb_bug("%s: table is not provided.", RUBY_FUNCTION_NAME_STRING); if (strncmp(table[i].name, name, len) != 0) { - rb_bug("ibf_load_builtin: index (%d) mismatch (expect %s but %s).", i, name, table[i].name); + rb_bug("%s: index (%d) mismatch (expect %s but %s).", RUBY_FUNCTION_NAME_STRING, i, name, table[i].name); } // fprintf(stderr, "load-builtin: name:%s(%d)\n", table[i].name, table[i].argc); |