summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-01 12:26:40 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-01 12:26:40 +0000
commit857827e3eed915543ac9d4d2541179ea4ded8eee (patch)
tree3cac5023aaf5cb19fb36cebdc15bd3e8780fb927 /vm.c
parent98ab1510c47505702e876f7f871cd033d58c387d (diff)
vm.c: partially revert r60558
because it was actually used in https://github.com/tmm1/rbtrace/blob/v0.4.8/ext/rbtrace.c#L329 and deprecated in r60579 AFTER removal in r60558. ko1 agreed that we should keep just deprecated in Ruby 2.5 and remove it later, and I'm commiting this because I want to make rbtrace.gem installation successful. backward.h: modify r60579 to make rb_frame_method_id_and_class() compilable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 1965851519..ed85586235 100644
--- a/vm.c
+++ b/vm.c
@@ -2048,6 +2048,12 @@ rb_ec_frame_method_id_and_class(const rb_execution_context_t *ec, ID *idp, ID *c
return rb_vm_control_frame_id_and_class(ec->cfp, idp, called_idp, klassp);
}
+int
+rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
+{
+ return rb_ec_frame_method_id_and_class(GET_EC(), idp, 0, klassp);
+}
+
VALUE
rb_vm_call_cfunc(VALUE recv, VALUE (*func)(VALUE), VALUE arg,
VALUE block_handler, VALUE filename)