[前][次][番号順一覧][スレッド一覧]

ruby-changes:3194

From: ko1@a...
Date: 25 Dec 2007 18:21:01 +0900
Subject: [ruby-changes:3194] shugo - Ruby:r14686 (trunk): * vm.c (rb_frame_method_id_and_class): new function to get the

shugo	2007-12-25 17:49:09 +0900 (Tue, 25 Dec 2007)

  New Revision: 14686

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/intern.h
    trunk/vm.c

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


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14686&r2=14685
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm.c?r1=14686&r2=14685
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=14686&r2=14685

Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 14685)
+++ include/ruby/intern.h	(revision 14686)
@@ -626,6 +626,7 @@
 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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14685)
+++ ChangeLog	(revision 14686)
@@ -1,3 +1,8 @@
+Tue Dec 25 17:48:28 2007  Shugo Maeda  <shugo@r...>
+
+	* 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@i...>
 
 	* lib/mkmf.rb (create_makefile): Add a missing dependency on the
Index: vm.c
===================================================================
--- vm.c	(revision 14685)
+++ vm.c	(revision 14686)
@@ -1388,6 +1388,12 @@
     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)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]