Ruby
1.9.3p547(2014-05-14revision45962)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
win32
dln
dlntest.c
Go to the documentation of this file.
1
#include <ruby.h>
2
3
extern
__declspec
(dllimport) void dlntest_ordinal(
void
);
4
5
static
VALUE
6
dln_dlntest(
VALUE
self)
7
{
8
dlntest_ordinal();
9
return
self
;
10
}
11
12
void
13
Init_dln
(
void
)
14
{
15
VALUE
m =
rb_define_module_under
(
rb_define_module
(
"Bug"
),
"Win32"
);
16
rb_define_module_function
(m,
"dlntest"
, dln_dlntest, 0);
17
}
Init_dln
void Init_dln(void)
Definition:
dlntest.c:13
__declspec
__declspec(dllimport)
Definition:
dlntest.c:3
rb_define_module_function
void rb_define_module_function(VALUE module, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a module function for module.
Definition:
class.c:1358
VALUE
unsigned long VALUE
Definition:
ruby.h:88
rb_define_module_under
VALUE rb_define_module_under(VALUE outer, const char *name)
Definition:
class.c:607
rb_define_module
VALUE rb_define_module(const char *name)
Definition:
class.c:587
Generated on Wed Feb 17 2016 12:31:04 for Ruby by
1.8.6