19 lines
546 B
Factor
19 lines
546 B
Factor
|
USING: help.markup help.syntax ;
|
||
|
IN: alien.libraries.finder
|
||
|
|
||
|
HELP: find-library
|
||
|
{ $values
|
||
|
{ "name" "a shared library name" }
|
||
|
{ "path/f" "a filesystem path or f" }
|
||
|
}
|
||
|
{ $description
|
||
|
"Returns a filesystem path for a plain shared library name, or f if no library can be found."
|
||
|
}
|
||
|
{ $examples
|
||
|
"Use " { $link find-library } " to load libraries whose exact filenames is not known in advance:"
|
||
|
{ $code
|
||
|
"<< \"sqlite\" \"sqlite3\" find-library cdecl add-library >>"
|
||
|
}
|
||
|
"Note the parse time evaluation with " { $link POSTPONE: << } "."
|
||
|
} ;
|