summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 08:49:09 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 08:49:09 +0000
commit8e4c6d848216495cf4ddde1aae52f9ac3c0c0801 (patch)
tree462a725e4c65ec10f5b9ad4f9b21327d346f8ce5 /vm.c
parentc40d4252ce6b7332f270d21c562e5fef181de79f (diff)
* vm.c (rb_frame_method_id_and_class): new function to get the
method id and class of the current frame. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14686 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 00689dcde3..0da900dfc8 100644
--- a/vm.c
+++ b/vm.c
@@ -1388,6 +1388,12 @@ rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp)
return 0;
}
+int
+rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
+{
+ return rb_thread_method_id_and_class(GET_THREAD(), idp, klassp);
+}
+
VALUE
rb_thread_current_status(rb_thread_t *th)
{