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");
|
2018-08-21 10:57:56 -04:00
|
|
|
VALUE klass = rb_define_class_under(mBug, "NotImplement", rb_cObject);
|
2010-08-07 00:33:33 -04:00
|
|
|
rb_define_module_function(mBug, "funcall", bug_funcall, -1);
|
|
|
|
rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
|
2018-08-13 09:50:48 -04:00
|
|
|
rb_define_method(klass, "notimplement", rb_f_notimplement, -1);
|
2010-08-07 00:33:33 -04:00
|
|
|
}
|