refactor!(lib): remove eval-when-compile!

BREAKING CHANGE: Removes the eval-when-compile! macro. I recently
discovered cl-eval-when and it serves this macro's purpose well
enough (and is autoloaded+built-in).

This macro wasn't used anywhere in (published) Doom code, however, and
users shouldn't really be using it, so its removal is unlikely to cause
any actual breakage.
This commit is contained in:
Henrik Lissner 2022-10-02 22:24:42 +02:00
parent ba35f12be4
commit f93003a9a2
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -393,15 +393,6 @@ See `eval-if!' for details on this macro's purpose."
(when (eval cond) (when (eval cond)
(macroexp-progn body))) (macroexp-progn body)))
(defmacro eval-when-compile! (&rest body)
"Evaluate BODY *only* during byte-compilation.
Unlike `eval-when-compile', which is equivalent to `progn' in interpreted code,
this macro's BODY will only be evaluated during byte-compilation."
(declare (indent 0))
(when (bound-and-true-p byte-compile-current-file)
(ignore (eval (macroexp-progn body) t))))
(defmacro versionp! (v1 comp v2 &rest comps) (defmacro versionp! (v1 comp v2 &rest comps)
"Perform compound version checks. "Perform compound version checks.