Ruby: include/ruby/version.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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
23/* The origin. */
24#define RUBY_AUTHOR "Yukihiro Matsumoto"
25#define RUBY_BIRTH_YEAR 1993
26#define RUBY_BIRTH_MONTH 2
27#define RUBY_BIRTH_DAY 24
28
29/* API version */
30#define RUBY_API_VERSION_MAJOR 3
31#define RUBY_API_VERSION_MINOR 0
32#define RUBY_API_VERSION_TEENY 0
33#define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
34
35#ifdef RUBY_EXTERN
36/* Internal note: this file could be included from verconf.mk _before_
37 * generating config.h, on Windows. The #ifdef above is to trick such
38 * situation. */
39 RBIMPL_SYMBOL_EXPORT_BEGIN()
40
41/*
42 * Interfaces from extension libraries.
43 *
44 * Before using these infos, think thrice whether they are really
45 * necessary or not, and if the answer was yes, think twice a week
46 * later again.
47 */
48 RUBY_EXTERN const int ruby_api_version[3];
49 RUBY_EXTERN const char ruby_version[];
50 RUBY_EXTERN const char ruby_release_date[];
51 RUBY_EXTERN const char ruby_platform[];
52 RUBY_EXTERN const int ruby_patchlevel;
53 RUBY_EXTERN const char ruby_description[];
54 RUBY_EXTERN const char ruby_copyright[];
55 RUBY_EXTERN const char ruby_engine[];
56
57 RBIMPL_SYMBOL_EXPORT_END()
58#endif
59
60#endif
RUBY_EXTERN
#define RUBY_EXTERN
Definition: dllexport.h:36
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
ruby_description
const char ruby_description[]
Definition: version.c:43
ruby_api_version
const int ruby_api_version[3]
Definition: version.c:26
ruby_engine
const char ruby_engine[]
Definition: version.c:46
ruby_platform
const char ruby_platform[]
Definition: version.c:41
ruby_version
const char ruby_version[]
Definition: version.c:38
ruby_copyright
const char ruby_copyright[]
Definition: version.c:45
ruby_release_date
const char ruby_release_date[]
Definition: version.c:40
ruby_patchlevel
const int ruby_patchlevel
Definition: version.c:42
const
#define const
Definition: strftime.c:108