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

ruby-changes:26598

From: zzak <ko1@a...>
Date: Sat, 29 Dec 2012 14:09:29 +0900 (JST)
Subject: [ruby-changes:26598] zzak:r38649 (trunk): * iseq.c (rb_iseq_line_trace_all, rb_iseq_line_trace_specify): Add

zzak	2012-12-29 14:09:18 +0900 (Sat, 29 Dec 2012)

  New Revision: 38649

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38649

  Log:
    * iseq.c (rb_iseq_line_trace_all, rb_iseq_line_trace_specify): Add
      rdoc for experimental C level api of iseq, from r38076

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38648)
+++ ChangeLog	(revision 38649)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 29 14:06:00 2012  Zachary Scott  <zachary@z...>
+
+	* iseq.c (rb_iseq_line_trace_all, rb_iseq_line_trace_specify): Add
+	  rdoc for experimental C level api of iseq, from r38076
+
 Sat Dec 29 11:37:36 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* object.c (rb_obj_clone): attach clone to its singleton class during
Index: iseq.c
===================================================================
--- iseq.c	(revision 38648)
+++ iseq.c	(revision 38649)
@@ -1981,6 +1981,11 @@ collect_trace(int line, rb_event_flag_t https://github.com/ruby/ruby/blob/trunk/iseq.c#L1981
     return 1;
 }
 
+/*
+ * <b>Experimental MRI specific feature, only available as C level api.</b>
+ *
+ * Returns all +specified_line+ events.
+ */
 VALUE
 rb_iseq_line_trace_all(VALUE iseqval)
 {
@@ -2016,6 +2021,18 @@ line_trace_specify(int line, rb_event_fl https://github.com/ruby/ruby/blob/trunk/iseq.c#L2021
     }
 }
 
+/*
+ * <b>Experimental MRI specific feature, only available as C level api.</b>
+ *
+ * Set a +specified_line+ event at the given line position, if the +set+
+ * parameter is +true+.
+ *
+ * This method is useful for building a debugger breakpoint at a specific line.
+ *
+ * A TypeError is raised if +set+ is not boolean.
+ *
+ * If +pos+ is a negative integer a TypeError exception is raised.
+ */
 VALUE
 rb_iseq_line_trace_specify(VALUE iseqval, VALUE pos, VALUE set)
 {

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

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