17 #define PRINT(type) puts(ruby_##type)
18 #define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
21 #define RUBY_ARCH RUBY_PLATFORM
24 #define RUBY_SITEARCH RUBY_ARCH
26 #ifdef RUBY_PLATFORM_CPU
27 #define RUBY_THINARCH RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
29 #ifndef RUBY_LIB_PREFIX
30 #ifndef RUBY_EXEC_PREFIX
31 #error RUBY_EXEC_PREFIX must be defined
33 #define RUBY_LIB_PREFIX RUBY_EXEC_PREFIX"/lib/ruby"
36 #define RUBY_SITE_LIB RUBY_LIB_PREFIX"/site_ruby"
38 #ifndef RUBY_VENDOR_LIB
39 #define RUBY_VENDOR_LIB RUBY_LIB_PREFIX"/vendor_ruby"
42 #define RUBY_LIB RUBY_LIB_PREFIX "/"RUBY_LIB_VERSION
43 #define RUBY_SITE_LIB2 RUBY_SITE_LIB "/"RUBY_LIB_VERSION
44 #define RUBY_VENDOR_LIB2 RUBY_VENDOR_LIB "/"RUBY_LIB_VERSION
45 #ifndef RUBY_ARCH_LIB_FOR
46 #define RUBY_ARCH_LIB_FOR(arch) RUBY_LIB "/"arch
48 #ifndef RUBY_SITE_ARCH_LIB_FOR
49 #define RUBY_SITE_ARCH_LIB_FOR(arch) RUBY_SITE_LIB2 "/"arch
51 #ifndef RUBY_VENDOR_ARCH_LIB_FOR
52 #define RUBY_VENDOR_ARCH_LIB_FOR(arch) RUBY_VENDOR_LIB2 "/"arch
70 #ifndef NO_INITIAL_LOAD_PATH
71 #ifdef RUBY_SEARCH_PATH
74 #ifndef NO_RUBY_SITE_LIB
83 #ifndef NO_RUBY_VENDOR_LIB
void rb_define_global_const(const char *, VALUE)
void Init_version(void)
Defines platform-depended Ruby-level constants.
const char ruby_copyright[]
#define RUBY_API_VERSION_TEENY
#define RUBY_RELEASE_DATE
void ruby_show_version(void)
Prints the version information of the CRuby interpreter to stdout.
#define RUBY_API_VERSION_MAJOR
void ruby_show_copyright(void)
Prints the copyright notice of the CRuby interpreter to stdout and exits this process successfully...
const int ruby_patchlevel
const char ruby_version[]
const char ruby_release_date[]
#define RUBY_SITE_ARCH_LIB_FOR(arch)
const int ruby_api_version[]
const char ruby_platform[]
#define RUBY_ARCH_LIB_FOR(arch)
const char ruby_initial_load_paths[]
#define RUBY_API_VERSION_MINOR
#define RUBY_VENDOR_ARCH_LIB_FOR(arch)
static void version(void)
const char ruby_description[]