2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00
waf/demos/ruby/rb_mytest.c

17 lines
232 B
C
Raw Normal View History

2011-09-10 11:13:51 +02:00
#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);
}