From 2fbf66a7e1fd2296c8e9bcb14ac223ea631bd55e Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 8 Dec 2011 10:27:01 +0000 Subject: Fix invalid test extension. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/path_to_class/path_to_class.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ext/-test-') diff --git a/ext/-test-/path_to_class/path_to_class.c b/ext/-test-/path_to_class/path_to_class.c index 9b88b48d40..c8c2831b09 100644 --- a/ext/-test-/path_to_class/path_to_class.c +++ b/ext/-test-/path_to_class/path_to_class.c @@ -1,9 +1,15 @@ #include "ruby.h" +static VALUE +path_to_class(VALUE klass, VALUE path) +{ + return rb_path_to_class(path); +} + void Init_path_to_class(void) { VALUE klass = rb_path2class("Test_PathToClass"); - rb_define_singleton_method(klass, "path_to_class", rb_path_to_class, 1); + rb_define_singleton_method(klass, "path_to_class", path_to_class, 1); } -- cgit v1.2.3