1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

do not use __func__.

Microsoft Visual Studio 12.0 doesn't support it.
This commit is contained in:
Koichi Sasada 2019-11-08 10:02:21 +09:00
parent 08ff9edb53
commit dad2abc69f

View file

@ -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(__func__);
if (table == NULL) rb_bug("ibf_load_builtin: table is not provided.");
if (strncmp(table[i].name, name, len) != 0) {
rb_bug("%s mistach", __func__);
rb_bug("ibf_load_builtin: index (%d) mismatch (expect %s but %s).", i, name, table[i].name);
}
// fprintf(stderr, "load-builtin: name:%s(%d)\n", table[i].name, table[i].argc);