|
Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include "ruby/ruby.h"#include "version.h"#include "vm_core.h"#include "mjit.h"#include <stdio.h>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) |
| #define | RUBY_VERSION |
| #define | RUBY_FULL_REVISION RUBY_REVISION |
| #define | MJIT_OPTS_ON 0 |
Functions | |
| void | Init_version (void) |
| Defines platform-depended Ruby-level constants. More... | |
| void | Init_ruby_description (void) |
| 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_revision [] = RUBY_FULL_REVISION |
| 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_WITH("") |
| 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 RUBY_FULL_REVISION RUBY_REVISION |
| #define RUBY_VERSION |
| void Init_ruby_description | ( | void | ) |
Definition at line 100 of file version.c.
References MJIT_OPTS_ON, MKSTR, and rb_define_global_const().
| void Init_version | ( | void | ) |
Defines platform-depended Ruby-level constants.
Definition at line 50 of file version.c.
References MKINT, MKSTR, rb_define_global_const(), rb_provide(), ruby_patchlevel, RUBY_PATCHLEVEL, and ruby_set_script_name().
| const char ruby_copyright[] = RUBY_COPYRIGHT |
| const char ruby_engine[] = "ruby" |
Definition at line 46 of file version.c.
Referenced by ruby_process_options().
| const int ruby_patchlevel = RUBY_PATCHLEVEL |
Definition at line 42 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_revision[] = RUBY_FULL_REVISION |
| const char ruby_version[] = RUBY_VERSION |