diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-03-14 23:09:05 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-03-14 23:09:05 +0900 |
| commit | 16b1b2978e4f4d838f3d12e7221139a92429603b (patch) | |
| tree | d1019f368520c284e5e16d264a6d3bd231df0b48 /include | |
| parent | 63124bf63350529f5c601d12a7c0bf16d763af78 (diff) | |
| download | mruby-16b1b2978e4f4d838f3d12e7221139a92429603b.tar.gz mruby-16b1b2978e4f4d838f3d12e7221139a92429603b.zip | |
Fix constant name validation
`X!` etc are invalid constant name.
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 68a2a7121..ba6037959 100644 --- a/include/mruby/variable.h +++ b/include/mruby/variable.h @@ -123,6 +123,7 @@ mrb_value mrb_obj_instance_variables(mrb_state*, mrb_value); mrb_value mrb_mod_class_variables(mrb_state*, mrb_value); mrb_value mrb_mod_cv_get(mrb_state *mrb, struct RClass * c, mrb_sym sym); mrb_bool mrb_mod_cv_defined(mrb_state *mrb, struct RClass * c, mrb_sym sym); +mrb_bool mrb_ident_p(const char *s, mrb_int len); /* GC functions */ void mrb_gc_mark_gv(mrb_state*); |
