Function: window-tool-bar--static-if
window-tool-bar--static-if is a macro defined in
window-tool-bar.el.gz.
Signature
(window-tool-bar--static-if CONDITION THEN-FORM &rest ELSE-FORMS)
Documentation
A conditional compilation macro.
Evaluate CONDITION at macro-expansion time. If it is non-nil,
expand the macro to THEN-FORM. Otherwise expand it to ELSE-FORMS
enclosed in a progn form. ELSE-FORMS may be empty.
Source Code
;; Defined in /usr/src/emacs/lisp/window-tool-bar.el.gz
;; static-if was added in Emacs 30, but this packages supports earlier
;; versions.
(defmacro window-tool-bar--static-if (condition then-form &rest else-forms)
"A conditional compilation macro.
Evaluate CONDITION at macro-expansion time. If it is non-nil,
expand the macro to THEN-FORM. Otherwise expand it to ELSE-FORMS
enclosed in a `progn' form. ELSE-FORMS may be empty."
(declare (indent 2)
(debug (sexp sexp &rest sexp)))
(if (eval condition lexical-binding)
then-form
(cons 'progn else-forms)))