Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Macros | |
#define | EXIT_SUCCESS 0 |
#define | PRINT(type) puts(ruby_##type) |
#define | MKSTR(type) rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1)) |
#define | MKINT(name) INT2FIX(ruby_##name) |
Functions | |
void | Init_version (void) |
Defines platform-depended Ruby-level constants. More... | |
void | ruby_show_version (void) |
Prints the version information of the CRuby interpreter to stdout. More... | |
void | ruby_show_copyright (void) |
Prints the copyright notice of the CRuby interpreter to stdout. More... | |
Variables | |
const int | ruby_api_version [] |
const char | ruby_version [] = RUBY_VERSION |
const char | ruby_release_date [] = RUBY_RELEASE_DATE |
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" |
Definition at line 22 of file version.c.
Referenced by Init_version().
#define MKSTR | ( | type | ) | rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1)) |
Definition at line 21 of file version.c.
Referenced by Init_version().
#define PRINT | ( | type | ) | puts(ruby_##type) |
Definition at line 20 of file version.c.
Referenced by ruby_show_copyright(), and ruby_show_version().
void Init_version | ( | void | ) |
Defines platform-depended Ruby-level constants.
Definition at line 39 of file version.c.
References MKINT, MKSTR, rb_define_global_const(), RUBY_PATCHLEVEL, ruby_patchlevel, RUBY_REVISION, ruby_set_script_name(), and version.
const int ruby_api_version[] |
const char ruby_copyright[] = RUBY_COPYRIGHT |
const char ruby_description[] = RUBY_DESCRIPTION |
Definition at line 33 of file version.c.
Referenced by bug_report_begin_valist(), rb_assert_failure(), and rb_async_bug_errno().
const char ruby_engine[] = "ruby" |
Definition at line 35 of file version.c.
Referenced by load_file_internal(), and ruby_process_options().
const int ruby_patchlevel = RUBY_PATCHLEVEL |
Definition at line 32 of file version.c.
Referenced by Init_version().
const char ruby_platform[] = RUBY_PLATFORM |
const char ruby_release_date[] = RUBY_RELEASE_DATE |
const char ruby_version[] = RUBY_VERSION |