Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# ext/-test-/bug-3662/bug.c

Go to the documentation of this file.

    00001 #include <ruby.h>
    00002
    00003 static VALUE
    00004 bug_funcall(int argc, VALUE *argv, VALUE self)
    00005 {
    00006     if (argc < 1) rb_raise(rb_eArgError, "not enough argument");
    00007     return rb_funcall2(self, rb_to_id(*argv), argc-1, argv+1);
    00008 }
    00009
    00010 void
    00011 Init_bug(void)
    00012 {
    00013     VALUE mBug = rb_define_module("Bug");
    00014     rb_define_module_function(mBug, "funcall", bug_funcall, -1);
    00015     rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
    00016 }
    00017