Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

version.h
Go to the documentation of this file.
1 # define RUBY_VERSION_MAJOR RUBY_API_VERSION_MAJOR
2 # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
3 #define RUBY_VERSION_TEENY 0
4 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
5 #define RUBY_PATCHLEVEL 0
6
7 #define RUBY_RELEASE_YEAR 2019
8 #define RUBY_RELEASE_MONTH 12
9 #define RUBY_RELEASE_DAY 25
10
11 #include "ruby/version.h"
12
13 #ifndef TOKEN_PASTE
14 #define TOKEN_PASTE(x,y) x##y
15 #endif
16 #define ONLY_ONE_DIGIT(x) TOKEN_PASTE(10,x) < 1000
17 #define WITH_ZERO_PADDING(x) TOKEN_PASTE(0,x)
18 #define RUBY_BIRTH_YEAR_STR STRINGIZE(RUBY_BIRTH_YEAR)
19 #define RUBY_RELEASE_YEAR_STR STRINGIZE(RUBY_RELEASE_YEAR)
20 #if ONLY_ONE_DIGIT(RUBY_RELEASE_MONTH)
21 #define RUBY_RELEASE_MONTH_STR STRINGIZE(WITH_ZERO_PADDING(RUBY_RELEASE_MONTH))
22 #else
23 #define RUBY_RELEASE_MONTH_STR STRINGIZE(RUBY_RELEASE_MONTH)
24 #endif
25 #if ONLY_ONE_DIGIT(RUBY_RELEASE_DAY)
26 #define RUBY_RELEASE_DAY_STR STRINGIZE(WITH_ZERO_PADDING(RUBY_RELEASE_DAY))
27 #else
28 #define RUBY_RELEASE_DAY_STR STRINGIZE(RUBY_RELEASE_DAY)
29 #endif
30
31 #if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE
32 # if RUBY_LIB_VERSION_STYLE == 3
33 # define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)"."STRINGIZE(RUBY_API_VERSION_TEENY)
34 # elif RUBY_LIB_VERSION_STYLE == 2
35 # define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)
36 # endif
37 #endif
38
39 #if RUBY_PATCHLEVEL == -1
40 #define RUBY_PATCHLEVEL_STR "dev"
41 #else
42 #define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
43 #endif
44
45 #ifndef RUBY_REVISION
46 # include "revision.h"
47 #endif
48
49 #ifdef RUBY_REVISION
50 # if RUBY_PATCHLEVEL == -1
51 # ifndef RUBY_BRANCH_NAME
52 # define RUBY_BRANCH_NAME "master"
53 # endif
54 # define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "RUBY_REVISION
55 # else
56 # define RUBY_REVISION_STR " revision "RUBY_REVISION
57 # endif
58 #else
59 # define RUBY_REVISION "HEAD"
60 # define RUBY_REVISION_STR ""
61 #endif
62 #if !defined RUBY_RELEASE_DATETIME || RUBY_PATCHLEVEL != -1
63 # undef RUBY_RELEASE_DATETIME
64 # define RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE
65 #endif
66
67 # define RUBY_DESCRIPTION_WITH(opt) \
68 "ruby "RUBY_VERSION \
69 RUBY_PATCHLEVEL_STR \
70 " ("RUBY_RELEASE_DATETIME \
71 RUBY_REVISION_STR")"opt" " \
72 "["RUBY_PLATFORM"]"
73 # define RUBY_COPYRIGHT \
74 "ruby - Copyright (C) " \
75 RUBY_BIRTH_YEAR_STR"-" \
76 RUBY_RELEASE_YEAR_STR" " \
77 RUBY_AUTHOR
revision.h
version.h