mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
guix: Add define-deprecated/public-alias.
* guix/deprecation.scm (define-deprecated/public-alias): New variable.
This commit is contained in:
parent
1be7f43756
commit
9ab158a457
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,7 @@ (define-module (guix deprecation)
|
|||
|
||||
define-deprecated/public
|
||||
define-deprecated/alias
|
||||
define-deprecated/public-alias
|
||||
|
||||
warn-about-old-daemon
|
||||
warn-about-deprecation))
|
||||
|
@ -124,3 +125,10 @@ (define-syntax deprecated
|
|||
(id
|
||||
(identifier? #'id)
|
||||
#'replacement)))))
|
||||
|
||||
(define-syntax-rule (define-deprecated/public-alias deprecated replacement)
|
||||
"Like define-deprecated/alias, but exporting DEPRECATED.
|
||||
It is assumed, that REPLACEMENT is already public."
|
||||
(begin
|
||||
(define-deprecated/alias deprecated replacement)
|
||||
(export deprecated)))
|
||||
|
|
Loading…
Reference in a new issue