Skip to content

Commit

Permalink
Built-in function table sentinels do not need names
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 9, 2022
1 parent db0e0da commit 2dcaeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin.h
Expand Up @@ -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, \
Expand Down

0 comments on commit 2dcaeb7

Please sign in to comment.