mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(lib): void-function static-unless error
Users may be on a build of Emacs 31 where `static-when` exists without
`static-unless`.
Fix: #8359
Amend: a13719af45
This commit is contained in:
parent
ad0eb9d5a2
commit
b2ce21068f
1 changed files with 3 additions and 1 deletions
|
|
@ -201,8 +201,10 @@ the value of the last one, or nil if there are none."
|
|||
(cons 'progn body)
|
||||
nil)
|
||||
(macroexp-warn-and-return (format-message "`static-when' with empty body")
|
||||
(list 'progn nil nil) '(empty-body static-when) t)))
|
||||
(list 'progn nil nil) '(empty-body static-when) t))))
|
||||
|
||||
;;; From Emacs 31+
|
||||
(unless (fboundp 'static-unless)
|
||||
(defmacro static-unless (condition &rest body)
|
||||
"A conditional compilation macro.
|
||||
Evaluate CONDITION at macro-expansion time. If it is nil,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue