mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-21 19:20:21 +02:00
* boot-9.scm (provided?): New function.
This commit is contained in:
parent
699139fd17
commit
50706e9475
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,12 @@
|
||||||
(if (not (memq sym *features*))
|
(if (not (memq sym *features*))
|
||||||
(set! *features* (cons sym *features*))))
|
(set! *features* (cons sym *features*))))
|
||||||
|
|
||||||
|
;;; Return #t iff FEATURE is available to this Guile interpreter.
|
||||||
|
;;; In SLIB, provided? also checks to see if the module is available.
|
||||||
|
;;; We should do that too, but don't.
|
||||||
|
(define (provided? feature)
|
||||||
|
(and (memq feature *features*) #t))
|
||||||
|
|
||||||
|
|
||||||
;;; {R4RS compliance}
|
;;; {R4RS compliance}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue