mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user