mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Built-in function table sentinels do not need names
This commit is contained in:
parent
db0e0dad11
commit
2dcaeb75ff
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ struct rb_builtin_function {
|
|||
};
|
||||
|
||||
#define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\
|
||||
.name = #_name, \
|
||||
.name = _i < 0 ? NULL : #_name, \
|
||||
.func_ptr = (void *)_fname, \
|
||||
.argc = _arity, \
|
||||
.index = _i, \
|
||||
|
|
Loading…
Reference in a new issue