Issue #127 - Allow cond-expand to check for libs

This commit is contained in:
Justin Ethier 2016-10-25 17:09:33 -04:00
parent 3e134e939e
commit 46a4fa2d37
2 changed files with 43 additions and 43 deletions

View file

@ -5,8 +5,9 @@ TODO: SRFI 113
Features: Features:
- Thanks to ecraven, added `exact-integer-sqrt`. - Thanks to ecraven, added R7RS function `exact-integer-sqrt` to `(scheme base)`.
- Allow the reader to recognize `+inf.0`, `-inf.0`, `+nan.0`, and `-nan.0`. - Allow the reader to recognize `+inf.0`, `-inf.0`, `+nan.0`, and `-nan.0`.
- Allow `cond-expand` to test for whether a library exists using the form `(library {library name})`.
Bug Fixes Bug Fixes

View file

@ -316,7 +316,6 @@
(er-macro-transformer (er-macro-transformer
;; Based on the cond-expand macro from Chibi scheme ;; Based on the cond-expand macro from Chibi scheme
(lambda (expr rename compare) (lambda (expr rename compare)
;; TODO: port to this macro, so we can use below for library form
(define (_library-exists? import . ext) (define (_library-exists? import . ext)
(file-exists? (file-exists?
(_lib:import->filename (_lib:import->filename