summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-21 11:44:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-21 11:44:09 +0000
commit17ac7835415cab22649422704a17c7b7f1c43419 (patch)
treee91b006070c1cd0a395ef08eb1b3b25513fd641a /iseq.c
parenta6c5431156d3fde6364724e7bd061b1ae79334db (diff)
* iseq.c (Init_ISeq): remove definition of the following methods:
ISeq#line_trace_all and ISeq#line_trace_specify because they are half baked. C APIs are remained as experimental. These functions will be renamed, removed their parameters may be changed. You can use these methods by C exts. Please give us your comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 9fb82d49c6..2394691731 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2076,9 +2076,15 @@ Init_ISeq(void)
rb_define_method(rb_cISeq, "base_label", iseq_base_label, 0);
rb_define_method(rb_cISeq, "first_lineno", iseq_first_lineno, 0);
- /* experimental */
+#if 0
+ /* Now, it is experimental. No discussions, no tests. */
+ /* They can be used from C level. Please give us feedback. */
rb_define_method(rb_cISeq, "line_trace_all", rb_iseq_line_trace_all, 0);
rb_define_method(rb_cISeq, "line_trace_specify", rb_iseq_line_trace_specify, 2);
+#else
+ (void)rb_iseq_line_trace_all;
+ (void)rb_iseq_line_trace_specify;
+#endif
#if 0 /* TBD */
rb_define_private_method(rb_cISeq, "marshal_dump", iseq_marshal_dump, 0);