зеркало из https://github.com/github/ruby.git
vm_trace.c: trick rdoc for TracePoint#enable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8555c53e74
Коммит
3c8ff424c6
|
@ -1814,6 +1814,9 @@ Init_vm_trace(void)
|
|||
rb_define_singleton_method(rb_cTracePoint, "trace", tracepoint_trace_s, -1);
|
||||
|
||||
rb_define_method(rb_cTracePoint, "__enable", tracepoint_enable_m, 3);
|
||||
#if 0 /* trick rdoc, defined in prelude.rb now */
|
||||
rb_define_method(rb_cTracePoint, "enable", tracepoint_enable_m, 3);
|
||||
#endif
|
||||
rb_define_method(rb_cTracePoint, "disable", tracepoint_disable_m, 0);
|
||||
rb_define_method(rb_cTracePoint, "enabled?", rb_tracepoint_enabled_p, 0);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче