summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-06-20 11:50:11 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2023-06-21 11:25:39 -0700
commit08478fefca827276d68e33f2e6a5940c85957a51 (patch)
tree41d9e6176d451833d9fba506dfa8fd6a7683a348
parentd53e1f42ff183af96832f6ede8e54afff6c8082f (diff)
[Feature #19741] Added Init_YARP() to load from the yarp C extension
Init_YARP is called from inits.c, and it loads the YARP C extension correctly
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7964
-rw-r--r--yarp/yarp_init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarp/yarp_init.c b/yarp/yarp_init.c
new file mode 100644
index 0000000000..9953c57be8
--- /dev/null
+++ b/yarp/yarp_init.c
@@ -0,0 +1,8 @@
+#include "yarp/extension.h"
+
+void ruby_init_ext(const char *name, void (*init)(void));
+
+void
+Init_YARP() {
+ ruby_init_ext("yarp.so", Init_yarp);
+}