mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby.h: use MRB_INLINE for mrb_funcall_argv1 / mrb_funcall_argv2
These public convenience wrappers were declared with raw `static inline`, while every other public inline helper in mruby.h uses MRB_INLINE. MRB_INLINE expands to static inline, so this is a spelling-only change for grep-consistency across the C API. Reported by dearblue in #6827. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -1186,12 +1186,12 @@ MRB_API mrb_value mrb_funcall_argv(mrb_state *mrb, mrb_value val, mrb_sym name,
|
||||
* Convenience wrappers for `mrb_funcall_argv` with a fixed argument count.
|
||||
* Avoids the 16-slot fixed argv buffer used by the variadic `mrb_funcall_id`.
|
||||
*/
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_funcall_argv1(mrb_state *mrb, mrb_value val, mrb_sym name, mrb_value a1)
|
||||
{
|
||||
return mrb_funcall_argv(mrb, val, name, 1, &a1);
|
||||
}
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_funcall_argv2(mrb_state *mrb, mrb_value val, mrb_sym name, mrb_value a1, mrb_value a2)
|
||||
{
|
||||
const mrb_value argv[] = { a1, a2 };
|
||||
|
||||
Reference in New Issue
Block a user