diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-23 10:40:17 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-23 10:40:17 +0900 |
| commit | 1fa63930fd072847d24ffe9c20a57109c41387ec (patch) | |
| tree | d19ad4a48db0934d09cf1dababec2a4ed27f53a0 /include | |
| parent | 2d781f5c1da6f627d9b4d3c2c7e9444108e09221 (diff) | |
| download | mruby-1fa63930fd072847d24ffe9c20a57109c41387ec.tar.gz mruby-1fa63930fd072847d24ffe9c20a57109c41387ec.zip | |
check object type before retrieving instance variabls; close #311
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/variable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/variable.h b/include/mruby/variable.h index 440c4cc8b..a4ed9a0ee 100644 --- a/include/mruby/variable.h +++ b/include/mruby/variable.h @@ -49,6 +49,7 @@ int mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id); mrb_value mrb_f_global_variables(mrb_state *mrb, mrb_value self); mrb_value mrb_gv_get(mrb_state *mrb, mrb_sym sym); void mrb_gv_set(mrb_state *mrb, mrb_sym sym, mrb_value val); +mrb_value mrb_obj_instance_variables(mrb_state*, mrb_value); /* GC functions */ void mrb_gc_mark_gv(mrb_state*); |
