Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
acf2fb29
Commit
acf2fb29
authored
Nov 17, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2752 from cremno/add-ruby_engine_version
add RUBY_ENGINE_VERSION
parents
27ee7cfb
e2e23c66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/version.c
src/version.c
+3
-0
No files found.
src/version.c
View file @
acf2fb29
...
...
@@ -4,8 +4,11 @@
void
mrb_init_version
(
mrb_state
*
mrb
)
{
mrb_value
mruby_version
=
mrb_str_new_lit
(
mrb
,
MRUBY_VERSION
);
mrb_define_global_const
(
mrb
,
"RUBY_VERSION"
,
mrb_str_new_lit
(
mrb
,
MRUBY_RUBY_VERSION
));
mrb_define_global_const
(
mrb
,
"RUBY_ENGINE"
,
mrb_str_new_lit
(
mrb
,
MRUBY_RUBY_ENGINE
));
mrb_define_global_const
(
mrb
,
"RUBY_ENGINE_VERSION"
,
mruby_version
);
mrb_define_global_const
(
mrb
,
"MRUBY_VERSION"
,
mrb_str_new_lit
(
mrb
,
MRUBY_VERSION
));
mrb_define_global_const
(
mrb
,
"MRUBY_RELEASE_NO"
,
mrb_fixnum_value
(
MRUBY_RELEASE_NO
));
mrb_define_global_const
(
mrb
,
"MRUBY_RELEASE_DATE"
,
mrb_str_new_lit
(
mrb
,
MRUBY_RELEASE_DATE
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment