Ruby
1.9.3p484(2013-11-22revision43786)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
bug-3662
bug.c
Go to the documentation of this file.
1
#include <ruby.h>
2
3
static
VALUE
4
bug_funcall
(
int
argc
,
VALUE
*
argv
,
VALUE
self
)
5
{
6
if
(argc < 1)
rb_raise
(
rb_eArgError
,
"not enough argument"
);
7
return
rb_funcall2
(
self
,
rb_to_id
(*argv), argc-1, argv+1);
8
}
9
10
void
11
Init_bug
(
void
)
12
{
13
VALUE
mBug =
rb_define_module
(
"Bug"
);
14
rb_define_module_function
(mBug,
"funcall"
,
bug_funcall
, -1);
15
rb_define_module_function
(mBug,
"notimplement"
,
rb_f_notimplement
, -1);
16
}
17
Generated on Fri Nov 22 2013 07:03:57 for Ruby by
1.8.3