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:
Henrik Lissner
2025-04-15 01:20:10 -04:00
parent ad0eb9d5a2
commit b2ce21068f

View File

@ -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,