diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-12-25 23:23:00 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-25 23:23:00 +0900 |
| commit | d6b898685f5e6efeb3b4cadac60237d3c26abc38 (patch) | |
| tree | fb34f7702c2654160b4a34b639b147df2a116d91 /include | |
| parent | d4cbe6271cc8343647fd0841bb549e1b7c804c34 (diff) | |
| parent | 0b2d54f4f1d66a0b00625dcc634966d67c29b8b8 (diff) | |
| download | mruby-d6b898685f5e6efeb3b4cadac60237d3c26abc38.tar.gz mruby-d6b898685f5e6efeb3b4cadac60237d3c26abc38.zip | |
Merge pull request #4907 from shuujii/fix-poteltially-use-of-wrong-method-cache
Fix potentially use of wrong method cache
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/class.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mruby/class.h b/include/mruby/class.h index c15633e83..cbf96fef2 100644 --- a/include/mruby/class.h +++ b/include/mruby/class.h @@ -95,6 +95,12 @@ void mrb_gc_mark_mt(mrb_state*, struct RClass*); size_t mrb_gc_mark_mt_size(mrb_state*, struct RClass*); void mrb_gc_free_mt(mrb_state*, struct RClass*); +#ifdef MRB_METHOD_CACHE +void mrb_mc_clear_by_class(mrb_state *mrb, struct RClass* c); +#else +#define mrb_mc_clear_by_class(mrb,c) +#endif + MRB_END_DECL #endif /* MRUBY_CLASS_H */ |
