From 6d2d31ac5f335247632f4d26ddfa408c8aca8670 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 14 May 2026 13:12:26 +0900 Subject: [PATCH] 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 --- include/mruby.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 };