summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-12-19 03:20:00 +0900
committerKoichi Sasada <ko1@atdot.net>2021-12-19 05:16:29 +0900
commit89a02d8932774f740013fe2a829faa9c40a1cfd1 (patch)
treefe04e27f4aac174a3c53965b481d1a279b29934b /iseq.h
parent52b1c76534eb5610527be97e8c9e98e46513e48c (diff)
downloadruby-89a02d8932774f740013fe2a829faa9c40a1cfd1.tar.gz
add `rb_iseq_type()` to return iseq type in Symbol
It is shorthand `ISeq#to_a[9]`.
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index cc68b8d3f8..fc61d03b76 100644
--- a/iseq.h
+++ b/iseq.h
@@ -198,6 +198,7 @@ const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw);
VALUE rb_iseq_absolute_path(const rb_iseq_t *iseq); /* obsolete */
int rb_iseq_from_eval_p(const rb_iseq_t *iseq);
+VALUE rb_iseq_type(const rb_iseq_t *iseq);
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);