The Ruby Cross Reference

Implementation: mri jruby rubinius
Version: 1.8.7-p374 1.9.1-p431 1.9.2-p381 1.9.3-p547 2.0.0-p481 2.1.0-p0 2.1.1 2.1.2 HEAD
001 #define RUBY_VERSION "2.1.0"
002 #define RUBY_RELEASE_DATE "2013-07-12"
003 #define RUBY_PATCHLEVEL -1
004 #define RUBY_BRANCH_NAME "trunk"
005 
006 #define RUBY_RELEASE_YEAR 2013
007 #define RUBY_RELEASE_MONTH 7
008 #define RUBY_RELEASE_DAY 12
009 
010 #include "ruby/version.h"
011 
012 #if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE
013 # if RUBY_LIB_VERSION_STYLE == 3
014 #   define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)"."STRINGIZE(RUBY_API_VERSION_TEENY)
015 # elif RUBY_LIB_VERSION_STYLE == 2
016 #   define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)
017 # endif
018 #endif
019 
020 #if RUBY_PATCHLEVEL == -1
021 #define RUBY_PATCHLEVEL_STR "dev"
022 #else
023 #define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
024 #endif
025 
026 #ifndef RUBY_REVISION
027 # include "revision.h"
028 #endif
029 #ifndef RUBY_REVISION
030 # define RUBY_REVISION 0
031 #endif
032 
033 #if RUBY_REVISION
034 # ifdef RUBY_BRANCH_NAME
035 #  define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION)
036 # else
037 #  define RUBY_REVISION_STR " revision "STRINGIZE(RUBY_REVISION)
038 # endif
039 #else
040 # define RUBY_REVISION_STR ""
041 #endif
042 
043 # define RUBY_DESCRIPTION           \
044     "ruby "RUBY_VERSION             \
045     RUBY_PATCHLEVEL_STR             \
046     " ("RUBY_RELEASE_DATE           \
047     RUBY_REVISION_STR") "           \
048     "["RUBY_PLATFORM"]"
049 # define RUBY_COPYRIGHT             \
050     "ruby - Copyright (C) "         \
051     STRINGIZE(RUBY_BIRTH_YEAR)"-"   \
052     STRINGIZE(RUBY_RELEASE_YEAR)" " \
053     RUBY_AUTHOR