Function: cc-conditional-require

cc-conditional-require is a macro defined in cc-bytecomp.el.gz.

Signature

(cc-conditional-require CC-PART CONDITION)

Documentation

If the CONDITION is satisfied at compile time, (i) force the file CC-PART.el in the current directory to be loaded at compile time, (ii) generate code to load the file at load time.

CC-PART will normally be a quoted name such as 'cc-fix. CONDITION should not be quoted.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-bytecomp.el.gz
(defmacro cc-conditional-require (cc-part condition)
  "If the CONDITION is satisfied at compile time, (i) force the
file CC-PART.el in the current directory to be loaded at compile
time, (ii) generate code to load the file at load time.

CC-PART will normally be a quoted name such as \\='cc-fix.
CONDITION should not be quoted."
  (declare (debug t))
  (if (eval condition)
      (progn
	(cc-bytecomp-load (symbol-name (eval cc-part)))
	`(require ,cc-part))
    '(progn)))