summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-14 01:37:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-14 01:37:41 +0000
commit77c301073b4fe9497ed96f0062b0017f57141811 (patch)
treead6eb9476aab3082ebf6bf1abec84392d6ff742f /iseq.h
parent23b8130c456198d757e2d1c250dce97f5675c1ee (diff)
use RUBY_API_VERSION as ISEQ versions.
* iseq.h: use RUBY_API_VERSION_MAJOR for ISEQ_MAJOR_VERSION and RUBY_API_VERSION_MINOR for ISEQ_MINOR_VERSION. We need to keep compatibility for ISeq during same major/minor versions. If we need to change compatibility between teeny versions, we should use (RUBY_API_VERSION_MINOR * 10 + iseq revs) for ISEQ_MINOR_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/iseq.h b/iseq.h
index a4a8c69..7a00b9b 100644
--- a/iseq.h
+++ b/iseq.h
@@ -12,8 +12,10 @@
#ifndef RUBY_ISEQ_H
#define RUBY_ISEQ_H 1
-#define ISEQ_MAJOR_VERSION 2
-#define ISEQ_MINOR_VERSION 3
+#include "ruby/version.h"
+
+#define ISEQ_MAJOR_VERSION RUBY_API_VERSION_MAJOR
+#define ISEQ_MINOR_VERSION RUBY_API_VERSION_MINOR
#ifndef rb_iseq_t
typedef struct rb_iseq_struct rb_iseq_t;