• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Révisionacf2fb29cd8101f842591fa3e42787fcbf4d45a0 (tree)
l'heure2015-11-17 09:00:21
AuteurYukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Message de Log

Merge pull request #2752 from cremno/add-ruby_engine_version

add RUBY_ENGINE_VERSION

Change Summary

Modification

--- a/src/version.c
+++ b/src/version.c
@@ -4,8 +4,11 @@
44 void
55 mrb_init_version(mrb_state* mrb)
66 {
7+ mrb_value mruby_version = mrb_str_new_lit(mrb, MRUBY_VERSION);
8+
79 mrb_define_global_const(mrb, "RUBY_VERSION", mrb_str_new_lit(mrb, MRUBY_RUBY_VERSION));
810 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);
912 mrb_define_global_const(mrb, "MRUBY_VERSION", mrb_str_new_lit(mrb, MRUBY_VERSION));
1013 mrb_define_global_const(mrb, "MRUBY_RELEASE_NO", mrb_fixnum_value(MRUBY_RELEASE_NO));
1114 mrb_define_global_const(mrb, "MRUBY_RELEASE_DATE", mrb_str_new_lit(mrb, MRUBY_RELEASE_DATE));