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)
	   (-pos- ,pos)
	   count)
       (if (and c-escaped-newline-takes-precedence
		(memq (char-after -pos-) '(?\n ?\r)))
	   (eq (char-before (if (eq -pos- -end-)
				,beg
			      -pos-))
	       ?\\)
	 (goto-char -pos-)
	 (setq count
	       (if (> -pos- -end-)
		   (skip-chars-backward "\\\\" -end-)
		 0))
	 (when (eq (point) -end-)
	   (goto-char ,beg)
	   (setq count (+ count (skip-chars-backward "\\\\"))))
	 (not (zerop (logand count 1)))))))