1
0
Fork 0
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:
Nobuyoshi Nakada 2022-09-09 11:51:11 +09:00
parent db0e0dad11
commit 2dcaeb75ff
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -17,7 +17,7 @@ struct rb_builtin_function {
}; };
#define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\ #define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\
.name = #_name, \ .name = _i < 0 ? NULL : #_name, \
.func_ptr = (void *)_fname, \ .func_ptr = (void *)_fname, \
.argc = _arity, \ .argc = _arity, \
.index = _i, \ .index = _i, \