mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/version.h (RUBY_API_VERSION_*): renamed and moved
from version.h. [ruby-dev:42103] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d5b1718c2
commit
89339af9c1
5 changed files with 26 additions and 5 deletions
|
@ -29,6 +29,12 @@
|
|||
#define RUBY_BIRTH_MONTH 2
|
||||
#define RUBY_BIRTH_DAY 24
|
||||
|
||||
/* API version */
|
||||
#define RUBY_API_VERSION_MAJOR 1
|
||||
#define RUBY_API_VERSION_MINOR 9
|
||||
#define RUBY_API_VERSION_TEENY 1
|
||||
#define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
@ -48,6 +54,7 @@ extern "C" {
|
|||
* necessary or not, and if the answer was yes, think twice a week
|
||||
* later again.
|
||||
*/
|
||||
RUBY_EXTERN const int ruby_api_version[3];
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
RUBY_EXTERN const char ruby_release_date[];
|
||||
RUBY_EXTERN const char ruby_platform[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue