2010-07-14 07:23:10 -04:00
|
|
|
#include <ruby.h>
|
|
|
|
|
|
|
|
static VALUE
|
2013-11-29 02:59:14 -05:00
|
|
|
bug_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg))
|
2010-07-14 07:23:10 -04:00
|
|
|
{
|
|
|
|
rb_notimplement();
|
|
|
|
return ID2SYM(rb_frame_this_func());
|
|
|
|
}
|
|
|
|
|
|
|
|
static VALUE
|
2019-08-28 04:33:07 -04:00
|
|
|
bug_start(VALUE self)
|
2010-07-14 07:23:10 -04:00
|
|
|
{
|
|
|
|
VALUE ary = rb_ary_new3(1, Qnil);
|
|
|
|
rb_block_call(ary, rb_intern("map"), 0, 0, bug_i, self);
|
|
|
|
return ary;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2016-01-10 04:43:47 -05:00
|
|
|
Init_bug_3571(void)
|
2010-07-14 07:23:10 -04:00
|
|
|
{
|
|
|
|
VALUE mBug = rb_define_module("Bug");
|
|
|
|
rb_define_module_function(mBug, "start", bug_start, 0);
|
|
|
|
}
|