mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
revival of __func__
dad2abc69f
deleted __func__ but ruby
already use this feature under RUBY_FUNCTION_NAME_STRING macro.
Use it.
This commit is contained in:
parent
a1a08ac9aa
commit
7661150109
1 changed files with 2 additions and 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue