mes/lib/srfi/srfi-0.scm

11 lines
302 B
Scheme
Raw Normal View History

2016-07-23 10:54:34 +00:00
(define mes '(0 1))
(define (cond-expand-expander clauses)
(let loop ((clauses clauses))
(if (defined? (caar clauses))
(eval (cons 'begin (cdar clauses)) (current-module))
(loop (cdr clauses)))))
(define-macro (cond-expand . clauses)
`(cond-expand-expander (quote ,clauses)))