diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-12-23 06:27:17 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-12-23 06:27:17 -0800 |
| commit | 210193478a367db9912907cb822c176e8161300f (patch) | |
| tree | e44769acdba7e82d937275454aa1140edce3d71a /include | |
| parent | b42d17adb3d4a8481b3399b5e2ce2a8b783f9aea (diff) | |
| parent | bdd0cc01119d6bd0d6f9d4e4ad16f7af56e6834f (diff) | |
| download | mruby-210193478a367db9912907cb822c176e8161300f.tar.gz mruby-210193478a367db9912907cb822c176e8161300f.zip | |
Merge pull request #669 from skandhas/pr-add-Module-class-variable-defined
Add Module#class_variable_defined? for mruby
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/variable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/variable.h b/include/mruby/variable.h index 9f4a62317..f2f22e65a 100644 --- a/include/mruby/variable.h +++ b/include/mruby/variable.h @@ -59,6 +59,8 @@ mrb_value mrb_mod_cv_get(mrb_state *mrb, struct RClass * c, mrb_sym sym); mrb_value mrb_cv_get(mrb_state *mrb, mrb_value mod, mrb_sym sym); void mrb_mod_cv_set(mrb_state *mrb, struct RClass * c, mrb_sym sym, mrb_value v); void mrb_cv_set(mrb_state *mrb, mrb_value mod, mrb_sym sym, mrb_value v); +int mrb_mod_cv_defined(mrb_state *mrb, struct RClass * c, mrb_sym sym); +int mrb_cv_defined(mrb_state *mrb, mrb_value mod, mrb_sym sym); /* GC functions */ void mrb_gc_mark_gv(mrb_state*); |
