Ruby: include/ruby/version.h Source File

Ruby 3.4.7p58 (2025-10-08 revision 7a5688e2a27668e48f8d6ff4af5b2208b98a2f5e)

version.h
Go to the documentation of this file.
1#ifndef RUBY_VERSION_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RUBY_VERSION_H 1
22
30
32#define RUBY_AUTHOR "Yukihiro Matsumoto"
33
35#define RUBY_BIRTH_YEAR 1993
36
38#define RUBY_BIRTH_MONTH 2
39
41#define RUBY_BIRTH_DAY 24
42
44
58
64#define RUBY_API_VERSION_MAJOR 3
65
70#define RUBY_API_VERSION_MINOR 4
71
76#define RUBY_API_VERSION_TEENY 0
77
84#define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
85
87
88#ifdef RUBY_EXTERN
89/* Internal note: this file could be included from verconf.mk _before_
90 * generating config.h, on Windows. The #ifdef above is to trick such
91 * situation. */
92 RBIMPL_SYMBOL_EXPORT_BEGIN()
93
94
103
104
105 RUBY_EXTERN const int ruby_api_version[3];
106
113 RUBY_EXTERN const char ruby_version[];
114
116 RUBY_EXTERN const char ruby_release_date[];
117
128 RUBY_EXTERN const char ruby_platform[];
129
136 RUBY_EXTERN const int ruby_patchlevel;
137
143 RUBY_EXTERN const char ruby_description[];
144
146 RUBY_EXTERN const char ruby_copyright[];
147
152 RUBY_EXTERN const char ruby_engine[];
153
155
156 RBIMPL_SYMBOL_EXPORT_END()
157#endif
158
159#endif
RUBY_EXTERN
#define RUBY_EXTERN
Declaration of externally visible global variables.
Definition dllexport.h:45
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:74
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:65
ruby_api_version
const int ruby_api_version[3]
API versions, in { major, minor, teeny } order.
Definition version.c:48
ruby_engine
const char ruby_engine[]
This is just "ruby" for us.
Definition version.c:85
ruby_platform
const char ruby_platform[]
Target platform identifier, in a C string.
Definition version.c:73
ruby_version
const char ruby_version[]
Stringised version.
Definition version.c:70
ruby_copyright
const char ruby_copyright[]
Copyright notice.
Definition version.c:82
ruby_release_date
const char ruby_release_date[]
Date of release, in a C string.
Definition version.c:72
ruby_patchlevel
const int ruby_patchlevel
This is a monotonic increasing integer that describes specific "patch" level.
Definition version.c:74
ruby_description
const char ruby_description[]
This is what ruby -v prints to the standard error.
Definition version.c:75