Handbook
Glossary
caller-linkage ( params -- symbol dll/f )
Vocabulary
compiler
.
cfg
.
builder
.
alien
Inputs
params
an
alien-node-params
Outputs
symbol
a
string
dll/f
a
dll
or
f
Word description
This word gets the name and library to use when linking to a function in a dynamically loaded dll. It is assumed that the library exports the undecorated name, regardless of calling convention.
Definition
USING:
accessors
alien.libraries
kernel
;
IN:
compiler.cfg.builder.alien
:
caller-linkage
( params -- symbol dll/f )
[
function>>
]
[
library>>
lookup-library
]
bi
2dup
check-dlsym
library-dll
;