1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/win32/dln/dlntest.c

18 lines
316 B
C
Raw Normal View History

#include <ruby.h>
extern __declspec(dllimport) void dlntest_ordinal(void);
static VALUE
dln_dlntest(VALUE self)
{
dlntest_ordinal();
return self;
}
void
Init_dln(void)
{
VALUE m = rb_define_module_under(rb_define_module("Bug"), "Win32");
rb_define_module_function(m, "dlntest", dln_dlntest, 0);
}