Function: c-cpp-define-name

c-cpp-define-name is a byte-compiled function defined in cc-cmds.el.gz.

Signature

(c-cpp-define-name)

Documentation

Return the name of the current CPP macro, or NIL if we're not in one.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-cpp-define-name ()
  "Return the name of the current CPP macro, or NIL if we're not in one."
  (let (case-fold-search)
    (save-excursion
      (and c-opt-cpp-macro-define-start
	   (c-beginning-of-macro)
	   (looking-at c-opt-cpp-macro-define-start)
	   (match-string-no-properties 1)))))