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:
parent
ba35f12be4
commit
f93003a9a2
1 changed files with 0 additions and 9 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue