diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-14 01:37:41 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-14 01:37:41 +0000 |
commit | 77c301073b4fe9497ed96f0062b0017f57141811 (patch) | |
tree | ad6eb9476aab3082ebf6bf1abec84392d6ff742f /iseq.h | |
parent | 23b8130c456198d757e2d1c250dce97f5675c1ee (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.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |