mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
18 lines
316 B
C
18 lines
316 B
C
|
#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);
|
||
|
}
|