Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
#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 | 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 |
Definition at line 100 of file version.c.
References MJIT_OPTS_ON, MKSTR, and rb_define_global_const().
Defines platform-depended Ruby-level constants.
Definition at line 50 of file version.c.
References ruby_patchlevel, and RUBY_PATCHLEVEL.
const char ruby_copyright[] = RUBY_COPYRIGHT |
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 |