Ruby
2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)
|
Go to the documentation of this file.
19 #define EXIT_SUCCESS 0
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)
31 #define RUBY_VERSION \
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
96 #define MJIT_OPTS_ON 0
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);
#define RUBY_API_VERSION_MAJOR
void ruby_show_version(void)
Prints the version information of the CRuby interpreter to stdout.
const char ruby_version[]
const int ruby_api_version[]
#define RUBY_FULL_REVISION
#define RUBY_DESCRIPTION_WITH(opt)
#define RUBY_RELEASE_DATE
#define RUBY_API_VERSION_TEENY
#define RUBY_API_VERSION_MINOR
void Init_ruby_description(void)
void ruby_show_copyright(void)
Prints the copyright notice of the CRuby interpreter to stdout.
void ruby_set_script_name(VALUE name)
Sets the current script name to this value.
void rb_provide(const char *)
void rb_define_global_const(const char *, VALUE)
void Init_version(void)
Defines platform-depended Ruby-level constants.
const char ruby_copyright[]
const char ruby_description[]
const int ruby_patchlevel
const char ruby_release_date[]
const char ruby_revision[]
const char ruby_platform[]