alien.libraries: try out throw-foo.
parent
c9bd438d18
commit
0e1169ceab
|
@ -79,7 +79,8 @@ M: library dispose dll>> [ dispose ] when* ;
|
||||||
lookup-library [ abi>> ] [ cdecl ] if* ;
|
lookup-library [ abi>> ] [ cdecl ] if* ;
|
||||||
|
|
||||||
: address-of ( name library -- value )
|
: address-of ( name library -- value )
|
||||||
2dup load-library dlsym-raw [ 2nip ] [ no-such-symbol ] if* ;
|
2dup load-library dlsym-raw
|
||||||
|
[ 2nip ] [ throw-no-such-symbol ] if* ;
|
||||||
|
|
||||||
SYMBOL: deploy-libraries
|
SYMBOL: deploy-libraries
|
||||||
|
|
||||||
|
@ -88,7 +89,7 @@ deploy-libraries [ V{ } clone ] initialize
|
||||||
: deploy-library ( name -- )
|
: deploy-library ( name -- )
|
||||||
dup libraries get key?
|
dup libraries get key?
|
||||||
[ deploy-libraries get 2dup member? [ 2drop ] [ push ] if ]
|
[ deploy-libraries get 2dup member? [ 2drop ] [ push ] if ]
|
||||||
[ "deploy-library failure" no-such-library ] if ;
|
[ "deploy-library failure" throw-no-such-library ] if ;
|
||||||
|
|
||||||
HOOK: >deployed-library-path os ( path -- path' )
|
HOOK: >deployed-library-path os ( path -- path' )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue