mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-29 08:20:20 +02:00
(basic syncase macro): Added.
This commit is contained in:
parent
5f1bde674f
commit
0b1b772f29
1 changed files with 7 additions and 0 deletions
|
@ -28,3 +28,10 @@
|
|||
(false-if-exception
|
||||
(begin (eval '(use-syntax (ice-9 syncase)) (current-module))
|
||||
#t)))
|
||||
|
||||
(define-syntax plus
|
||||
(syntax-rules ()
|
||||
((plus x ...) (+ x ...))))
|
||||
|
||||
(pass-if "basic syncase macro"
|
||||
(= (plus 1 2 3) (+ 1 2 3)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue