Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

version.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 ruby/version.h -
4
5 $Author$
6 created at: Wed May 13 12:56:56 JST 2009
7
8 Copyright (C) 1993-2009 Yukihiro Matsumoto
9 Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
10 Copyright (C) 2000 Information-technology Promotion Agency, Japan
11
12 **********************************************************************/
13
14 /*
15 * This file contains only
16 * - never-changeable information, and
17 * - interfaces accessible from extension libraries.
18 *
19 * Never try to check RUBY_VERSION_CODE etc in extension libraries,
20 * check the features with mkmf.rb instead.
21 */
22
23 #ifndef RUBY_VERSION_H
24 #define RUBY_VERSION_H 1
25
26 /* The origin. */
27 #define RUBY_AUTHOR "Yukihiro Matsumoto"
28 #define RUBY_BIRTH_YEAR 1993
29 #define RUBY_BIRTH_MONTH 2
30 #define RUBY_BIRTH_DAY 24
31
32 /* API version */
33 #define RUBY_API_VERSION_MAJOR 2
34 #define RUBY_API_VERSION_MINOR 7
35 #define RUBY_API_VERSION_TEENY 0
36 #define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
37
38 #ifdef RUBY_EXTERN
39 #if defined(__cplusplus)
40 extern "C" {
41 #if 0
42 } /* satisfy cc-mode */
43 #endif
44 #endif
45
46 RUBY_SYMBOL_EXPORT_BEGIN
47
48 /*
49 * Interfaces from extension libraries.
50 *
51 * Before using these infos, think thrice whether they are really
52 * necessary or not, and if the answer was yes, think twice a week
53 * later again.
54 */
55 RUBY_EXTERN const int ruby_api_version[3];
56 RUBY_EXTERN const char ruby_version[];
57 RUBY_EXTERN const char ruby_release_date[];
58 RUBY_EXTERN const char ruby_platform[];
59 RUBY_EXTERN const int ruby_patchlevel;
60 RUBY_EXTERN const char ruby_description[];
61 RUBY_EXTERN const char ruby_copyright[];
62 RUBY_EXTERN const char ruby_engine[];
63
64 RUBY_SYMBOL_EXPORT_END
65
66 #if defined(__cplusplus)
67 #if 0
68 { /* satisfy cc-mode */
69 #endif
70 } /* extern "C" { */
71 #endif
72 #endif
73
74 #endif
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:49
ruby_engine
const char ruby_engine[]
Definition: version.c:46
ruby_version
const char ruby_version[]
Definition: version.c:38
ruby_api_version
const RUBY_EXTERN int ruby_api_version[]
Definition: iseq.h:15
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:48
ruby_patchlevel
const RUBY_EXTERN int ruby_patchlevel
Definition: ruby.c:921
ruby_copyright
const char ruby_copyright[]
Definition: version.c:45
RUBY_EXTERN
#define RUBY_EXTERN
Definition: missing.h:77
ruby_description
const char ruby_description[]
Definition: version.c:43
ruby_release_date
const char ruby_release_date[]
Definition: version.c:40
ruby_platform
const char ruby_platform[]
Definition: version.c:41