diff options
| author | takahashim <[email protected]> | 2015-09-27 17:26:08 +0900 |
|---|---|---|
| committer | takahashim <[email protected]> | 2015-09-27 17:33:13 +0900 |
| commit | df83d429352ccfbce24b84b6cefdc5e5cc3f48d7 (patch) | |
| tree | 39c162e8b52fdef6b2a101eed527b80589ea1b9d | |
| parent | 0aa83c503d15d5683f2135d172a02f155498c598 (diff) | |
| download | mruby-df83d429352ccfbce24b84b6cefdc5e5cc3f48d7.tar.gz mruby-df83d429352ccfbce24b84b6cefdc5e5cc3f48d7.zip | |
fix signature of mrb_class_new_instance()
dd925578c604a608f83172f85d8e5bfc3bb99c6a changed the order of arguments,
but it doesn't seem intentional.
| -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); } |
