diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-09-19 02:51:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-09-19 02:51:52 +0900 |
| commit | 95c7f570e10d40deca74e69a197219622e249c01 (patch) | |
| tree | 15e92a12b65e55c3f6270c094b40d95d8402b290 /include | |
| parent | 6b34166ba58fa8503a6a7805d39dd29c4b3c8445 (diff) | |
| download | mruby-95c7f570e10d40deca74e69a197219622e249c01.tar.gz mruby-95c7f570e10d40deca74e69a197219622e249c01.zip | |
change class argument of mrb_const_defined_at from `struct RClass*` to `mrb_value` to make it consistent with mrb_const_defined; ref #2593
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/variable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/variable.h b/include/mruby/variable.h index 8758114b9..2779304eb 100644 --- a/include/mruby/variable.h +++ b/include/mruby/variable.h @@ -50,7 +50,7 @@ MRB_API void mrb_iv_set(mrb_state *mrb, mrb_value obj, mrb_sym sym, mrb_value v) MRB_API mrb_bool mrb_iv_defined(mrb_state*, mrb_value, mrb_sym); MRB_API mrb_value mrb_iv_remove(mrb_state *mrb, mrb_value obj, mrb_sym sym); MRB_API void mrb_iv_copy(mrb_state *mrb, mrb_value dst, mrb_value src); -MRB_API mrb_bool mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id); +MRB_API mrb_bool mrb_const_defined_at(mrb_state *mrb, mrb_value mod, mrb_sym id); MRB_API mrb_value mrb_gv_get(mrb_state *mrb, mrb_sym sym); MRB_API void mrb_gv_set(mrb_state *mrb, mrb_sym sym, mrb_value val); MRB_API void mrb_gv_remove(mrb_state *mrb, mrb_sym sym); |
