diff --git a/include/mruby.h b/include/mruby.h index 65fe84778..7f5b76633 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -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 };