summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/version.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ruby/version.h b/include/ruby/version.h
index 101b5d9c63..458efff320 100644
--- a/include/ruby/version.h
+++ b/include/ruby/version.h
@@ -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[];