2010-08-07 00:33:33 -04:00
|
|
|
#include <ruby.h>
|
|
|
|
|
|
|
|
static VALUE
|
|
|
|
bug_funcall(int argc, VALUE *argv, VALUE self)
|
|
|
|
{
|
|
|
|
if (argc < 1) rb_raise(rb_eArgError, "not enough argument");
|
2016-07-29 07:57:14 -04:00
|
|
|
return rb_funcallv(self, rb_to_id(*argv), argc-1, argv+1);
|
2010-08-07 00:33:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2015-05-17 10:47:36 -04:00
|
|
|
Init_notimplement(void)
|
2010-08-07 00:33:33 -04:00
|
|
|
{
|
|
|
|
VALUE mBug = rb_define_module("Bug");
|
|
|
|
rb_define_module_function(mBug, "funcall", bug_funcall, -1);
|
|
|
|
rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
|
|
|
|
}
|