diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-27 20:48:54 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-27 20:48:54 +0900 |
| commit | 2eb2f5b408d56249453f15e79bb3e01688afdfdc (patch) | |
| tree | 053808fd0af3f9b02642734b0eb26c6f3c49e56a | |
| parent | f70634b542139d131ff690204e6e45571d8ab497 (diff) | |
| parent | df83d429352ccfbce24b84b6cefdc5e5cc3f48d7 (diff) | |
| download | mruby-2eb2f5b408d56249453f15e79bb3e01688afdfdc.tar.gz mruby-2eb2f5b408d56249453f15e79bb3e01688afdfdc.zip | |
Merge pull request #2965 from takahashim/fix-class-new-instance
fix signature of mrb_class_new_instance()
| -rw-r--r-- | include/mruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index a20693394..6d34b241c 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -285,7 +285,7 @@ MRB_API void mrb_undef_class_method(mrb_state*, struct RClass*, const char*); MRB_API mrb_value mrb_obj_new(mrb_state *mrb, struct RClass *c, mrb_int argc, const mrb_value *argv); /** See @ref mrb_obj_new */ -MRB_INLINE mrb_value mrb_class_new_instance(mrb_state *mrb, struct RClass *c, mrb_int argc, const mrb_value *argv) +MRB_INLINE mrb_value mrb_class_new_instance(mrb_state *mrb, mrb_int argc, const mrb_value *argv, struct RClass *c) { return mrb_obj_new(mrb,c,argc,argv); } |
