From 77c301073b4fe9497ed96f0062b0017f57141811 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 14 Nov 2017 01:37:41 +0000 Subject: 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 --- iseq.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'iseq.h') diff --git a/iseq.h b/iseq.h index a4a8c693dd..7a00b9b8ad 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; -- cgit v1.2.3