summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/-test-/win32/dln/dlntest.c
blob: 3e6037ac07989bffafb32b5db1fb035dc10167de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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);
}