mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 14:07:34 +02:00
Added (imported?)
This commit is contained in:
parent
f88016eb3e
commit
e469f4d5a6
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
setup-environment ; non-standard
|
||||
;; Dynamic import
|
||||
%import
|
||||
imported?
|
||||
)
|
||||
(begin
|
||||
|
||||
|
@ -624,6 +625,10 @@
|
|||
(set! *global-environment* (setup-environment *initial-environment*))
|
||||
#t))
|
||||
|
||||
;; Is the given library loaded?
|
||||
(define (imported? lis)
|
||||
(c:lib-loaded? (lib:name->unique-string (lib:list->import-set lis))))
|
||||
|
||||
;; Wrapper around the actual shared object import function
|
||||
(define-c c:import-shared-obj
|
||||
"(void *data, int argc, closure _, object k, object fn, object entry_fnc)"
|
||||
|
|
Loading…
Add table
Reference in a new issue