Ruby
2.5.0dev(2017-10-22revision60238)
|
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" |
#define MKSTR | ( | type | ) | rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1)) |
#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 RUBY_PATCHLEVEL, ruby_patchlevel, and RUBY_REVISION.
const int ruby_api_version[] |
const char ruby_copyright[] = RUBY_COPYRIGHT |
const char ruby_engine[] = "ruby" |
Definition at line 35 of file version.c.
Referenced by 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 |