22#define PRINT(type) puts(ruby_##type)
23#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1))
24#define MKINT(name) INT2FIX(ruby_##name)
32 STRINGIZE(RUBY_VERSION_MAJOR) "." \
33 STRINGIZE(RUBY_VERSION_MINOR) "." \
34 STRINGIZE(RUBY_VERSION_TEENY) ""
35#ifndef RUBY_FULL_REVISION
36# define RUBY_FULL_REVISION RUBY_REVISION
54 VALUE ruby_engine_name;
94#define MJIT_OPTS_ON mjit_opts.on
105 description =
MKSTR(description_with_jit);
108 description =
MKSTR(description);
122 PRINT(description_with_jit);
127#ifdef RUBY_LAST_COMMIT_TITLE
128 fputs(
"last_commit=" RUBY_LAST_COMMIT_TITLE,
stdout);
130#ifdef HAVE_MALLOC_CONF
131 if (malloc_conf)
printf(
"malloc_conf=%s\n", malloc_conf);
const char ruby_description[]
void ruby_show_copyright(void)
Prints the copyright notice of the CRuby interpreter to stdout.
void ruby_show_version(void)
Prints the version information of the CRuby interpreter to stdout.
#define RUBY_API_VERSION_TEENY
#define RUBY_API_VERSION_MAJOR
#define RUBY_API_VERSION_MINOR
const int ruby_api_version[]
const char ruby_platform[]
const char ruby_version[]
void Init_version(void)
Defines platform-depended Ruby-level constants.
#define RUBY_FULL_REVISION
void Init_ruby_description(void)
const char ruby_revision[]
const char ruby_copyright[]
const char ruby_release_date[]
const int ruby_patchlevel
#define RUBY_DESCRIPTION_WITH(opt)
#define RUBY_RELEASE_DATE