aboutsummaryrefslogtreecommitdiff
path: root/compat-macs.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-21 18:14:21 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-21 19:04:51 +0100
commit7d61400bc9df955d269b06ae613f52d04c96dc55 (patch)
treea1ef2eb8cd5de0a25f0481c45ec7c14ce7ee19be /compat-macs.el
parent690ba439c70325aaedc0f87c794ee73c172ba2e2 (diff)
compat-guard: Add strict compile time check
Diffstat (limited to 'compat-macs.el')
-rw-r--r--compat-macs.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat-macs.el b/compat-macs.el
index a68a408..bf836cd 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -163,6 +163,7 @@ definition is generated.
(lambda (body)
(if (eq cond t)
body
+ (compat--strict (eval cond t) "Guard %S failed" cond)
`((when ,cond ,@body))))))
(defmacro compat-defalias (name def &rest attrs)