alien.libraries: add-library should now reload the library properly, instead of just leaking DLL handles
parent
d515715b0c
commit
1993274d01
|
@ -30,4 +30,5 @@ M: library dispose dll>> [ dispose ] when* ;
|
||||||
libraries get delete-at* [ dispose ] [ drop ] if ;
|
libraries get delete-at* [ dispose ] [ drop ] if ;
|
||||||
|
|
||||||
: add-library ( name path abi -- )
|
: add-library ( name path abi -- )
|
||||||
<library> swap libraries get [ delete-at ] [ set-at ] 2bi ;
|
[ 2drop remove-library ]
|
||||||
|
[ <library> swap libraries get set-at ] 3bi ;
|
Loading…
Reference in New Issue