summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
-rw-r--r--version.c7
1 files changed, 6 insertions, 1 deletions
@@ -38,10 +38,11 @@ VALUE ruby_engine_name = Qnil;
void
Init_version(void)
{
/*
* The running version of ruby
*/
- rb_define_global_const("RUBY_VERSION", MKSTR(version));
/*
* The date this ruby was released
*/
@@ -71,6 +72,10 @@ Init_version(void)
* The engine or interpreter this ruby uses.
*/
rb_define_global_const("RUBY_ENGINE", ruby_engine_name = MKSTR(engine));
}
/*! Prints the version information of the CRuby interpreter to stdout. */