mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
allow (define-macro name (lambda ...))
* module/ice-9/boot-9.scm (define-macro): Allow define-macro NAME LAMBDA. A bugfix. Thanks to Akop Pogosian.
This commit is contained in:
parent
1d14478ffb
commit
10a467f398
1 changed files with 2 additions and 0 deletions
|
@ -871,6 +871,8 @@ information is unavailable."
|
|||
#'(define-macro macro doc (lambda args body1 body ...)))
|
||||
((_ (macro . args) body ...)
|
||||
#'(define-macro macro #f (lambda args body ...)))
|
||||
((_ macro transformer)
|
||||
#'(define-macro macro #f transformer))
|
||||
((_ macro doc transformer)
|
||||
(or (string? (syntax->datum #'doc))
|
||||
(not (syntax->datum #'doc)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue