load-library ( name -- dll )
Factor documentation
>
Factor handbook
>
C library interface
>
Loading native libraries
Prev:
remove-library ( name -- )
Next:
deploy-library ( name -- )
Vocabulary
alien.libraries
Inputs and outputs
name
a
string
dll
a DLL handle
Word description
Loads a library by logical name and outputs a handle which may be passed to
dlsym
or
dlclose
. If the library is already loaded, returns the existing handle.
Definition
USING:
accessors
kernel
;
IN:
alien.libraries
:
load-library
( name -- dll )
library
dup
[
dll>>
]
when
;