Handbook
Glossary
find-library* ( name -- path/f )
Vocabulary
alien
.
libraries
.
finder
Inputs
name
a shared library name
Outputs
path/f
filesystem path or
f
Word description
Returns a filesystem path for a plain shared library name, or f if no library can be found.
Definition
USING:
system
;
IN:
alien.libraries.finder
HOOK:
find-library*
os
( name -- path/f )
Methods
USING:
alien.libraries.finder
alien.libraries.finder.macos
arrays
kernel
sequences
system
;
M:
macos
find-library*
[
"lib"
".dylib"
surround
]
[
".dylib"
append
]
[
".framework/"
over
3append
]
tri
3array
[
dyld-find
]
map-find
drop
;