From 026439bda8000f806356e13724e4d1c17ff01c2b Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 21 Dec 2017 06:40:28 +0000 Subject: add experimental API. * iseq.c (rb_iseq_code_range): added to access iseq's code range. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iseq.h') diff --git a/iseq.h b/iseq.h index fb0a5d0d29..17066cb4bd 100644 --- a/iseq.h +++ b/iseq.h @@ -189,6 +189,7 @@ VALUE rb_iseq_label(const rb_iseq_t *iseq); VALUE rb_iseq_base_label(const rb_iseq_t *iseq); VALUE rb_iseq_first_lineno(const rb_iseq_t *iseq); VALUE rb_iseq_method_name(const rb_iseq_t *iseq); +void rb_iseq_code_range(const rb_iseq_t *iseq, int *first_lineno, int *first_column, int *last_lineno, int *last_column); /* proc.c */ const rb_iseq_t *rb_method_iseq(VALUE body); -- cgit v1.2.3