diff options
author | Koichi Sasada <[email protected]> | 2021-12-19 03:20:00 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2021-12-19 05:16:29 +0900 |
commit | 89a02d8932774f740013fe2a829faa9c40a1cfd1 (patch) | |
tree | fe04e27f4aac174a3c53965b481d1a279b29934b /iseq.h | |
parent | 52b1c76534eb5610527be97e8c9e98e46513e48c (diff) |
add `rb_iseq_type()` to return iseq type in Symbol
It is shorthand `ISeq#to_a[9]`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5298
Diffstat (limited to 'iseq.h')
-rw-r--r-- | iseq.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |