2009-05-13 02:23:20 -04:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
ruby/version.h -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
created at: Wed May 13 12:56:56 JST 2009
|
|
|
|
|
|
|
|
Copyright (C) 1993-2009 Yukihiro Matsumoto
|
|
|
|
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
|
|
|
|
Copyright (C) 2000 Information-technology Promotion Agency, Japan
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file contains only
|
2015-12-25 00:12:16 -05:00
|
|
|
* - never-changeable information, and
|
2009-05-13 02:23:20 -04:00
|
|
|
* - interfaces accessible from extension libraries.
|
|
|
|
*
|
|
|
|
* Never try to check RUBY_VERSION_CODE etc in extension libraries,
|
|
|
|
* check the features with mkmf.rb instead.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RUBY_VERSION_H
|
|
|
|
#define RUBY_VERSION_H 1
|
|
|
|
|
|
|
|
/* The origin. */
|
|
|
|
#define RUBY_AUTHOR "Yukihiro Matsumoto"
|
|
|
|
#define RUBY_BIRTH_YEAR 1993
|
|
|
|
#define RUBY_BIRTH_MONTH 2
|
|
|
|
#define RUBY_BIRTH_DAY 24
|
|
|
|
|
2010-08-23 17:08:19 -04:00
|
|
|
/* API version */
|
2012-01-06 09:13:27 -05:00
|
|
|
#define RUBY_API_VERSION_MAJOR 2
|
2017-12-25 09:05:59 -05:00
|
|
|
#define RUBY_API_VERSION_MINOR 6
|
2012-01-06 09:13:27 -05:00
|
|
|
#define RUBY_API_VERSION_TEENY 0
|
2010-08-23 17:08:19 -04:00
|
|
|
#define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
|
|
|
|
|
2009-05-13 02:23:20 -04:00
|
|
|
#ifdef RUBY_EXTERN
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#if 0
|
|
|
|
} /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
#endif
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_BEGIN
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2009-05-13 02:23:20 -04:00
|
|
|
/*
|
|
|
|
* Interfaces from extension libraries.
|
|
|
|
*
|
|
|
|
* Before using these infos, think thrice whether they are really
|
|
|
|
* necessary or not, and if the answer was yes, think twice a week
|
|
|
|
* later again.
|
|
|
|
*/
|
2010-08-23 17:08:19 -04:00
|
|
|
RUBY_EXTERN const int ruby_api_version[3];
|
2009-05-13 02:23:20 -04:00
|
|
|
RUBY_EXTERN const char ruby_version[];
|
|
|
|
RUBY_EXTERN const char ruby_release_date[];
|
|
|
|
RUBY_EXTERN const char ruby_platform[];
|
|
|
|
RUBY_EXTERN const int ruby_patchlevel;
|
|
|
|
RUBY_EXTERN const char ruby_description[];
|
|
|
|
RUBY_EXTERN const char ruby_copyright[];
|
|
|
|
RUBY_EXTERN const char ruby_engine[];
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_END
|
2010-07-21 17:38:25 -04:00
|
|
|
|
2009-05-13 02:23:20 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if 0
|
|
|
|
{ /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|