mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
assert types in boolean=? and symbol=? (fixes issue #579)
This commit is contained in:
parent
544eaa79c7
commit
58e10b2a7d
1 changed files with 6 additions and 2 deletions
|
@ -35,9 +35,13 @@
|
|||
(define inexact exact->inexact)
|
||||
|
||||
(define (boolean=? x y . o)
|
||||
(and (eq? x y) (if (pair? o) (apply boolean=? y o) #t)))
|
||||
(if (not (boolean? x))
|
||||
(error "not a boolean" x)
|
||||
(and (eq? x y) (if (pair? o) (apply boolean=? y o) #t))))
|
||||
(define (symbol=? x y . o)
|
||||
(and (eq? x y) (if (pair? o) (apply symbol=? y o) #t)))
|
||||
(if (not (symbol? x))
|
||||
(error "not a symbol" x)
|
||||
(and (eq? x y) (if (pair? o) (apply symbol=? y o) #t))))
|
||||
|
||||
(define call/cc call-with-current-continuation)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue