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
64d7dec4
Commit
64d7dec4
authored
Sep 01, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2930 from suzukaze/version2
Refactor version macros, and add a global const variable
parents
87f1281c
e9b4cb11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
include/mruby/version.h
include/mruby/version.h
+7
-5
src/version.c
src/version.c
+1
-0
No files found.
include/mruby/version.h
View file @
64d7dec4
...
@@ -7,25 +7,27 @@
...
@@ -7,25 +7,27 @@
#ifndef MRUBY_VERSION_H
#ifndef MRUBY_VERSION_H
#define MRUBY_VERSION_H
#define MRUBY_VERSION_H
#define MRB_STRINGIZE0(expr) #expr
#define MRB_STRINGIZE(expr) MRB_STRINGIZE0(expr)
#define MRUBY_RUBY_VERSION "1.9"
#define MRUBY_RUBY_VERSION "1.9"
#define MRUBY_RUBY_ENGINE "mruby"
#define MRUBY_RUBY_ENGINE "mruby"
#define MRUBY_VERSION "1.1.0"
#define MRUBY_RELEASE_MAJOR 1
#define MRUBY_RELEASE_MAJOR 1
#define MRUBY_RELEASE_MINOR 1
#define MRUBY_RELEASE_MINOR 1
#define MRUBY_RELEASE_TEENY 1
#define MRUBY_RELEASE_TEENY 1
#define MRUBY_RELEASE_NO 10101
#define MRUBY_RELEASE_DATE "2014-11-19"
#define MRUBY_VERSION MRB_STRINGIZE(MRUBY_RELEASE_MAJOR)"."MRB_STRINGIZE(MRUBY_RELEASE_MINOR)"."MRB_STRINGIZE(MRUBY_RELEASE_TEENY)
#define MRUBY_RELEASE_NO (MRUBY_RELEASE_MAJOR * 100 * 100 + MRUBY_RELEASE_MINOR * 100 + MRUBY_RELEASE_TEENY)
#define MRUBY_RELEASE_YEAR 2014
#define MRUBY_RELEASE_YEAR 2014
#define MRUBY_RELEASE_MONTH 11
#define MRUBY_RELEASE_MONTH 11
#define MRUBY_RELEASE_DAY 19
#define MRUBY_RELEASE_DAY 19
#define MRUBY_RELEASE_DATE MRB_STRINGIZE(MRUBY_RELEASE_YEAR)"-"MRB_STRINGIZE(MRUBY_RELEASE_MONTH)"-"MRB_STRINGIZE(MRUBY_RELEASE_DAY)
#define MRUBY_BIRTH_YEAR 2010
#define MRUBY_BIRTH_YEAR 2010
#define MRUBY_AUTHOR "mruby developers"
#define MRUBY_AUTHOR "mruby developers"
#define MRB_STRINGIZE0(expr) #expr
#define MRB_STRINGIZE(expr) MRB_STRINGIZE0(expr)
#define MRUBY_DESCRIPTION \
#define MRUBY_DESCRIPTION \
"mruby " MRUBY_VERSION \
"mruby " MRUBY_VERSION \
...
...
src/version.c
View file @
64d7dec4
...
@@ -7,6 +7,7 @@ mrb_init_version(mrb_state* mrb)
...
@@ -7,6 +7,7 @@ mrb_init_version(mrb_state* mrb)
mrb_define_global_const
(
mrb
,
"RUBY_VERSION"
,
mrb_str_new_lit
(
mrb
,
MRUBY_RUBY_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"
,
mrb_str_new_lit
(
mrb
,
MRUBY_RUBY_ENGINE
));
mrb_define_global_const
(
mrb
,
"MRUBY_VERSION"
,
mrb_str_new_lit
(
mrb
,
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
));
mrb_define_global_const
(
mrb
,
"MRUBY_RELEASE_DATE"
,
mrb_str_new_lit
(
mrb
,
MRUBY_RELEASE_DATE
));
mrb_define_global_const
(
mrb
,
"MRUBY_DESCRIPTION"
,
mrb_str_new_lit
(
mrb
,
MRUBY_DESCRIPTION
));
mrb_define_global_const
(
mrb
,
"MRUBY_DESCRIPTION"
,
mrb_str_new_lit
(
mrb
,
MRUBY_DESCRIPTION
));
mrb_define_global_const
(
mrb
,
"MRUBY_COPYRIGHT"
,
mrb_str_new_lit
(
mrb
,
MRUBY_COPYRIGHT
));
mrb_define_global_const
(
mrb
,
"MRUBY_COPYRIGHT"
,
mrb_str_new_lit
(
mrb
,
MRUBY_COPYRIGHT
));
...
...
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