Hello,
Is there a reason why the following constants aren’t defined for the
ruby
runtime? Is there another way to access them that I’m not finding?
Thanks,
-Adam
Index: version.c
— version.c (revision 12654)
+++ version.c (working copy)
@@ -30,6 +30,13 @@
rb_define_global_const(“RUBY_RELEASE_DATE”, d);
rb_define_global_const(“RUBY_PLATFORM”, p);
rb_define_global_const(“RUBY_PATCHLEVEL”,
INT2FIX(RUBY_PATCHLEVEL));
+
+
rb_define_global_const(“RUBY_LIB”,rb_obj_freeze(rb_str_new2(RUBY_LIB)));
+
rb_define_global_const(“RUBY_SITE_LIB”,rb_obj_freeze(rb_str_new2(RUBY_SITE_LIB)));
+
rb_define_global_const(“RUBY_SITE_LIB2”,rb_obj_freeze(rb_str_new2(RUBY_SITE_LIB2)));
+
rb_define_global_const(“RUBY_ARCHLIB”,rb_obj_freeze(rb_str_new2(RUBY_ARCHLIB)));
+
rb_define_global_const(“RUBY_SITE_ARCHLIB”,rb_obj_freeze(rb_str_new2(RUBY_SITE_ARCHLIB)));
+
}
void