mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -393,15 +393,6 @@ See `eval-if!' for details on this macro's purpose."
|
||||
(when (eval cond)
|
||||
(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)
|
||||
"Perform compound version checks.
|
||||
|
||||
|
Reference in New Issue
Block a user