fix `with-shared-id`

pull/2/head
Matthew Butterick 8 years ago
parent e2df4fee70
commit 42d0dacb5b

@ -119,9 +119,7 @@
(begin-for-syntax (begin-for-syntax
(define-syntax-rule (with-shared-id (id ...) . body) (define-syntax-rule (with-shared-id (id ...) . body)
(with-syntax ([id (datum->syntax caller-stx (if (syntax? id) (with-syntax ([id (datum->syntax caller-stx 'id)] ...)
(syntax-e id)
id))] ...)
. body))) . body)))

Loading…
Cancel
Save