From 08478fefca827276d68e33f2e6a5940c85957a51 Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Tue, 20 Jun 2023 11:50:11 -0400 Subject: [PATCH] [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 --- yarp/yarp_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 yarp/yarp_init.c 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); +}