From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/ruby/ext/-test-/file/init.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 jni/ruby/ext/-test-/file/init.c (limited to 'jni/ruby/ext/-test-/file/init.c') diff --git a/jni/ruby/ext/-test-/file/init.c b/jni/ruby/ext/-test-/file/init.c new file mode 100644 index 0000000..1117993 --- /dev/null +++ b/jni/ruby/ext/-test-/file/init.c @@ -0,0 +1,11 @@ +#include "ruby.h" + +#define init(n) {void Init_##n(VALUE klass); Init_##n(module);} + +void +Init_file(void) +{ + VALUE mBug = rb_define_module("Bug"); + VALUE module = rb_define_module_under(mBug, "File"); + TEST_INIT_FUNCS(init); +} -- cgit v1.2.3