You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/demos/ruby/rb_mytest.c

17 lines
232 B
C

#include <ruby.h>
static VALUE
m_hello (VALUE self)
{
return rb_str_new2("Hello World");
}
void
Init_mytest_ext (void)
{
VALUE mTest = rb_define_module ("MytestInt");
rb_define_module_function (mTest, "hello", m_hello, 0);
}