Function: c-will-be-escaped

c-will-be-escaped is a macro defined in cc-defs.el.gz.

Signature

(c-will-be-escaped POS BEG END)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
(defmacro c-will-be-escaped (pos beg end)
  ;; Will the character after POS be escaped after the removal of (BEG END)?
  ;; It is assumed that (>= POS END).
  (declare (debug t))
  `(save-excursion
     (let ((-end- ,end)
	   count)
       (goto-char ,pos)
       (setq count (skip-chars-backward "\\\\" -end-))
       (when (eq (point) -end-)
	 (goto-char ,beg)
	 (setq count (+ count (skip-chars-backward "\\\\"))))
       (not (zerop (logand count 1))))))