diff options
Diffstat (limited to 'ext/-test-/bug-5832')
-rw-r--r-- | ext/-test-/bug-5832/bug.c | 14 | ||||
-rw-r--r-- | ext/-test-/bug-5832/extconf.rb | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ext/-test-/bug-5832/bug.c b/ext/-test-/bug-5832/bug.c new file mode 100644 index 0000000000..67be5844b6 --- /dev/null +++ b/ext/-test-/bug-5832/bug.c @@ -0,0 +1,14 @@ +#include <ruby.h> + +static VALUE +bug_funcall_callback(VALUE self, VALUE obj) +{ + return rb_funcall(obj, rb_intern("callback"), 0); +} + +void +Init_bug(void) +{ + VALUE mBug = rb_define_module("Bug"); + rb_define_module_function(mBug, "funcall_callback", bug_funcall_callback, 1); +} diff --git a/ext/-test-/bug-5832/extconf.rb b/ext/-test-/bug-5832/extconf.rb new file mode 100644 index 0000000000..55a4b7d93f --- /dev/null +++ b/ext/-test-/bug-5832/extconf.rb @@ -0,0 +1 @@ +create_makefile("-test-/bug-5832/bug") |