Ruby  2.0.0p247(2013-06-27revision41674)
include/ruby/version.h
Go to the documentation of this file.
00001 /**********************************************************************
00002 
00003   ruby/version.h -
00004 
00005   $Author: ayumin $
00006   created at: Wed May 13 12:56:56 JST 2009
00007 
00008   Copyright (C) 1993-2009 Yukihiro Matsumoto
00009   Copyright (C) 2000  Network Applied Communication Laboratory, Inc.
00010   Copyright (C) 2000  Information-technology Promotion Agency, Japan
00011 
00012 **********************************************************************/
00013 
00014 /*
00015  * This file contains only
00016  * - never-changable informations, and
00017  * - interfaces accessible from extension libraries.
00018  *
00019  * Never try to check RUBY_VERSION_CODE etc in extension libraries,
00020  * check the features with mkmf.rb instead.
00021  */
00022 
00023 #ifndef RUBY_VERSION_H
00024 #define RUBY_VERSION_H 1
00025 
00026 /* The origin. */
00027 #define RUBY_AUTHOR "Yukihiro Matsumoto"
00028 #define RUBY_BIRTH_YEAR 1993
00029 #define RUBY_BIRTH_MONTH 2
00030 #define RUBY_BIRTH_DAY 24
00031 
00032 /* API version */
00033 #define RUBY_API_VERSION_MAJOR 2
00034 #define RUBY_API_VERSION_MINOR 0
00035 #define RUBY_API_VERSION_TEENY 0
00036 #define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
00037 
00038 #ifdef RUBY_EXTERN
00039 #if defined(__cplusplus)
00040 extern "C" {
00041 #if 0
00042 } /* satisfy cc-mode */
00043 #endif
00044 #endif
00045 
00046 #if defined __GNUC__ && __GNUC__ >= 4
00047 #pragma GCC visibility push(default)
00048 #endif
00049 
00050 /*
00051  * Interfaces from extension libraries.
00052  *
00053  * Before using these infos, think thrice whether they are really
00054  * necessary or not, and if the answer was yes, think twice a week
00055  * later again.
00056  */
00057 RUBY_EXTERN const int ruby_api_version[3];
00058 RUBY_EXTERN const char ruby_version[];
00059 RUBY_EXTERN const char ruby_release_date[];
00060 RUBY_EXTERN const char ruby_platform[];
00061 RUBY_EXTERN const int  ruby_patchlevel;
00062 RUBY_EXTERN const char ruby_description[];
00063 RUBY_EXTERN const char ruby_copyright[];
00064 RUBY_EXTERN const char ruby_engine[];
00065 
00066 #if defined __GNUC__ && __GNUC__ >= 4
00067 #pragma GCC visibility pop
00068 #endif
00069 
00070 #if defined(__cplusplus)
00071 #if 0
00072 { /* satisfy cc-mode */
00073 #endif
00074 }  /* extern "C" { */
00075 #endif
00076 #endif
00077 
00078 #endif
00079