mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-31 01:10:24 +02:00
begin-deprecated using syntax-case
* module/ice-9/boot-9.scm (begin-deprecated): In terms of syntax-case.
This commit is contained in:
parent
ea28e98134
commit
ec0f307ee9
1 changed files with 7 additions and 6 deletions
|
@ -516,13 +516,14 @@ If there is no handler at all, Guile prints an error and then exits."
|
||||||
|
|
||||||
;;; {Deprecation}
|
;;; {Deprecation}
|
||||||
;;;
|
;;;
|
||||||
;;; Depends on: defmacro
|
|
||||||
;;;
|
|
||||||
|
|
||||||
(defmacro begin-deprecated forms
|
(define-syntax begin-deprecated
|
||||||
|
(lambda (x)
|
||||||
|
(syntax-case x ()
|
||||||
|
((_ form form* ...)
|
||||||
(if (include-deprecated-features)
|
(if (include-deprecated-features)
|
||||||
`(begin ,@forms)
|
#'(begin form form* ...)
|
||||||
`(begin)))
|
#'(begin))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue