Ruby  2.5.0dev(2017-10-22revision60238)
Macros
version.h File Reference
#include "ruby/version.h"
#include "revision.h"

Go to the source code of this file.

Macros

#define RUBY_VERSION   "2.5.0"
 
#define RUBY_RELEASE_DATE   RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
 
#define RUBY_PATCHLEVEL   -1
 
#define RUBY_RELEASE_YEAR   2017
 
#define RUBY_RELEASE_MONTH   10
 
#define RUBY_RELEASE_DAY   22
 
#define TOKEN_PASTE(x, y)   x##y
 
#define ONLY_ONE_DIGIT(x)   TOKEN_PASTE(10,x) < 1000
 
#define WITH_ZERO_PADDING(x)   TOKEN_PASTE(0,x)
 
#define RUBY_BIRTH_YEAR_STR   STRINGIZE(RUBY_BIRTH_YEAR)
 
#define RUBY_RELEASE_YEAR_STR   STRINGIZE(RUBY_RELEASE_YEAR)
 
#define RUBY_RELEASE_MONTH_STR   STRINGIZE(RUBY_RELEASE_MONTH)
 
#define RUBY_RELEASE_DAY_STR   STRINGIZE(RUBY_RELEASE_DAY)
 
#define RUBY_PATCHLEVEL_STR   "dev"
 
#define RUBY_REVISION_STR   " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION)
 
#define RUBY_DESCRIPTION
 
#define RUBY_COPYRIGHT
 

Macro Definition Documentation

◆ ONLY_ONE_DIGIT

#define ONLY_ONE_DIGIT (   x)    TOKEN_PASTE(10,x) < 1000

Definition at line 14 of file version.h.

◆ RUBY_BIRTH_YEAR_STR

#define RUBY_BIRTH_YEAR_STR   STRINGIZE(RUBY_BIRTH_YEAR)

Definition at line 16 of file version.h.

◆ RUBY_COPYRIGHT

#define RUBY_COPYRIGHT
Value:
"ruby - Copyright (C) " \
RUBY_BIRTH_YEAR_STR"-" \
RUBY_RELEASE_YEAR_STR" " \
RUBY_AUTHOR

Definition at line 69 of file version.h.

◆ RUBY_DESCRIPTION

#define RUBY_DESCRIPTION
Value:
"ruby "RUBY_VERSION \
RUBY_PATCHLEVEL_STR \
" ("RUBY_RELEASE_DATE \
RUBY_REVISION_STR") " \
#define RUBY_PLATFORM
Definition: defines.h:325

Definition at line 63 of file version.h.

◆ RUBY_PATCHLEVEL

#define RUBY_PATCHLEVEL   -1

Definition at line 3 of file version.h.

Referenced by Init_version().

◆ RUBY_PATCHLEVEL_STR

#define RUBY_PATCHLEVEL_STR   "dev"

Definition at line 38 of file version.h.

◆ RUBY_RELEASE_DATE

Definition at line 2 of file version.h.

◆ RUBY_RELEASE_DAY

#define RUBY_RELEASE_DAY   22

Definition at line 7 of file version.h.

◆ RUBY_RELEASE_DAY_STR

#define RUBY_RELEASE_DAY_STR   STRINGIZE(RUBY_RELEASE_DAY)

Definition at line 26 of file version.h.

◆ RUBY_RELEASE_MONTH

#define RUBY_RELEASE_MONTH   10

Definition at line 6 of file version.h.

◆ RUBY_RELEASE_MONTH_STR

#define RUBY_RELEASE_MONTH_STR   STRINGIZE(RUBY_RELEASE_MONTH)

Definition at line 21 of file version.h.

◆ RUBY_RELEASE_YEAR

#define RUBY_RELEASE_YEAR   2017

Definition at line 5 of file version.h.

◆ RUBY_RELEASE_YEAR_STR

#define RUBY_RELEASE_YEAR_STR   STRINGIZE(RUBY_RELEASE_YEAR)

Definition at line 17 of file version.h.

◆ RUBY_REVISION_STR

#define RUBY_REVISION_STR   " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION)

Definition at line 55 of file version.h.

◆ RUBY_VERSION

#define RUBY_VERSION   "2.5.0"

Definition at line 1 of file version.h.

◆ TOKEN_PASTE

#define TOKEN_PASTE (   x,
 
)    x##y

Definition at line 12 of file version.h.

◆ WITH_ZERO_PADDING

#define WITH_ZERO_PADDING (   x)    TOKEN_PASTE(0,x)

Definition at line 15 of file version.h.