diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-29 05:09:18 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-29 05:09:18 +0000 |
commit | 4706171d27f63b0687de586d84c028e4f68b6bc1 (patch) | |
tree | bd7a0880f90e6de8d7563e94f771cb887f610939 /iseq.c | |
parent | ad6f06aed8bf9b753622809441c4db0d523cd41f (diff) | |
download | ruby-4706171d27f63b0687de586d84c028e4f68b6bc1.tar.gz |
* iseq.c (rb_iseq_line_trace_all, rb_iseq_line_trace_specify): Add
rdoc for experimental C level api of iseq, from r38076
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1981,6 +1981,11 @@ collect_trace(int line, rb_event_flag_t *events_ptr, void *ptr) 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_flag_t *events_ptr, void *ptr) } } +/* + * <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) { |