mrubyを超漢字で動作させる
Révision | acf2fb29cd8101f842591fa3e42787fcbf4d45a0 (tree) |
---|---|
l'heure | 2015-11-17 09:00:21 |
Auteur | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
Merge pull request #2752 from cremno/add-ruby_engine_version
add RUBY_ENGINE_VERSION
@@ -4,8 +4,11 @@ | ||
4 | 4 | void |
5 | 5 | mrb_init_version(mrb_state* mrb) |
6 | 6 | { |
7 | + mrb_value mruby_version = mrb_str_new_lit(mrb, MRUBY_VERSION); | |
8 | + | |
7 | 9 | mrb_define_global_const(mrb, "RUBY_VERSION", mrb_str_new_lit(mrb, MRUBY_RUBY_VERSION)); |
8 | 10 | mrb_define_global_const(mrb, "RUBY_ENGINE", mrb_str_new_lit(mrb, MRUBY_RUBY_ENGINE)); |
11 | + mrb_define_global_const(mrb, "RUBY_ENGINE_VERSION", mruby_version); | |
9 | 12 | mrb_define_global_const(mrb, "MRUBY_VERSION", mrb_str_new_lit(mrb, MRUBY_VERSION)); |
10 | 13 | mrb_define_global_const(mrb, "MRUBY_RELEASE_NO", mrb_fixnum_value(MRUBY_RELEASE_NO)); |
11 | 14 | mrb_define_global_const(mrb, "MRUBY_RELEASE_DATE", mrb_str_new_lit(mrb, MRUBY_RELEASE_DATE)); |