summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 08:28:44 (GMT)
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 08:28:44 (GMT)
commitf677aae7bc778df3cb1a63ca9313ddb51481d274 (patch)
treee334a638ad065a55631d8cfc033deae2c968b824 /version.c
parent0cafe9e4cdc7658e80f6678e2785ebbb8623ca4e (diff)
* version.c (Init_version): add RUBY_ENGINE constant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/version.c b/version.c
index 3a1d1fc..53edf02 100644
--- a/version.c
+++ b/version.c
@@ -22,6 +22,7 @@ const char ruby_platform[] = RUBY_PLATFORM;
const int ruby_patchlevel = RUBY_PATCHLEVEL;
const char ruby_description[] = RUBY_DESCRIPTION;
const char ruby_copyright[] = RUBY_COPYRIGHT;
+const char ruby_engine[] = "ruby";
void
Init_version(void)
@@ -33,6 +34,7 @@ Init_version(void)
rb_define_global_const("RUBY_REVISION", INT2FIX(RUBY_REVISION));
rb_define_global_const("RUBY_DESCRIPTION", MKSTR(description));
rb_define_global_const("RUBY_COPYRIGHT", MKSTR(copyright));
+ rb_define_global_const("RUBY_ENGINE", MKSTR(engine));
}
void