From d1608ba72e451875796bcb70f671c4618c8f1719 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 14 May 2026 13:23:05 +0900 Subject: [PATCH] mruby.h: add MRB_API to mrb_const_cache_clear The function is the symmetric counterpart of mrb_method_cache_clear declared two lines above, but was added without MRB_API in 50bc8c6136. Both are VM-internal cache invalidators exposed in the public header under the same #ifndef MRB_NO_*_CACHE pattern; make their decoration consistent. Reported by dearblue in #6826. Co-authored-by: Claude --- include/mruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mruby.h b/include/mruby.h index 7f5b76633..db89b6236 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -1323,7 +1323,7 @@ MRB_API void mrb_method_cache_clear(mrb_state *mrb); #define mrb_method_cache_clear(mrb) ((void)0) #endif #ifndef MRB_NO_CONST_CACHE -void mrb_const_cache_clear(mrb_state *mrb); +MRB_API void mrb_const_cache_clear(mrb_state *mrb); #else #define mrb_const_cache_clear(mrb) ((void)0) #endif