Last change
on this file since 328 was 321, checked in by coas-nagasima, 7 years ago |
文字コードを設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
858 bytes
|
Line | |
---|
1 | #include "mruby.h"
|
---|
2 | #include "mruby/variable.h"
|
---|
3 |
|
---|
4 | void
|
---|
5 | mrb_init_version(mrb_state* mrb)
|
---|
6 | {
|
---|
7 | mrb_value mruby_version = mrb_str_new_lit(mrb, MRUBY_VERSION);
|
---|
8 |
|
---|
9 | mrb_define_global_const(mrb, "RUBY_VERSION", mrb_str_new_lit(mrb, MRUBY_RUBY_VERSION));
|
---|
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);
|
---|
12 | mrb_define_global_const(mrb, "MRUBY_VERSION", mrb_str_new_lit(mrb, MRUBY_VERSION));
|
---|
13 | mrb_define_global_const(mrb, "MRUBY_RELEASE_NO", mrb_fixnum_value(MRUBY_RELEASE_NO));
|
---|
14 | mrb_define_global_const(mrb, "MRUBY_RELEASE_DATE", mrb_str_new_lit(mrb, MRUBY_RELEASE_DATE));
|
---|
15 | mrb_define_global_const(mrb, "MRUBY_DESCRIPTION", mrb_str_new_lit(mrb, MRUBY_DESCRIPTION));
|
---|
16 | mrb_define_global_const(mrb, "MRUBY_COPYRIGHT", mrb_str_new_lit(mrb, MRUBY_COPYRIGHT));
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.