mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
guard against failed module-ref
This commit is contained in:
parent
f817dbaf96
commit
4a06997978
1 changed files with 2 additions and 1 deletions
|
@ -1039,7 +1039,8 @@ h4 { color: #222288; border-top: 1px solid #4588ba; }
|
||||||
(define (extract-module-docs-from-files mod srcs includes stubs strict? exports . o)
|
(define (extract-module-docs-from-files mod srcs includes stubs strict? exports . o)
|
||||||
(let ((dir (or (and (pair? o) (car o)) (module-dir mod)))
|
(let ((dir (or (and (pair? o) (car o)) (module-dir mod)))
|
||||||
(defs (map (lambda (x)
|
(defs (map (lambda (x)
|
||||||
(let ((val (and mod (module-ref mod x))))
|
(let ((val (and mod (protect (exn (else #f))
|
||||||
|
(module-ref mod x)))))
|
||||||
`(,x ,val ,(object-source val))))
|
`(,x ,val ,(object-source val))))
|
||||||
exports)))
|
exports)))
|
||||||
(define (resolve-file file)
|
(define (resolve-file file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue