Skip to content

Commit

Permalink
* vm.c (rb_frame_method_id_and_class): new function to get the
Browse files Browse the repository at this point in the history
  method id and class of the current frame.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shugo committed Dec 25, 2007
1 parent 57b5d25 commit bc02b02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Tue Dec 25 17:48:28 2007 Shugo Maeda <shugo@ruby-lang.org>

* vm.c (rb_frame_method_id_and_class): new function to get the
method id and class of the current frame.

Tue Dec 25 17:32:04 2007 Akinori MUSHA <knu@iDaemons.org>

* lib/mkmf.rb (create_makefile): Add a missing dependency on the
Expand Down
1 change: 1 addition & 0 deletions include/ruby/intern.h
Expand Up @@ -626,6 +626,7 @@ VALUE rb_str_succ(VALUE);
VALUE rb_time_succ(VALUE);
void Init_stack(VALUE*);
void rb_frame_pop(void);
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);

#if defined(__cplusplus)
#if 0
Expand Down
6 changes: 6 additions & 0 deletions vm.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit bc02b02

Please sign in to comment.