Function: semantic-c-hideif-lookup
semantic-c-hideif-lookup is a byte-compiled function defined in
c.el.gz.
Signature
(semantic-c-hideif-lookup VAR)
Documentation
Replacement for hif-lookup.
I think it just gets the value for some CPP variable VAR.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
;;; HIDEIF HACK support fcns
;;
;; These fcns can replace the impl of some hideif features.
;;
;; @TODO - Should hideif and semantic-c merge?
;; I picture a grammar just for CPP that expands into
;; a second token stream for the parser.
(defun semantic-c-hideif-lookup (var)
"Replacement for `hif-lookup'.
I think it just gets the value for some CPP variable VAR."
(let ((val (semantic-c-evaluate-symbol-for-hideif
(cond
((stringp var) var)
((symbolp var) (symbol-name var))
(t "Unable to determine var")))))
(if val
val
;; Real hideif will return the right undefined symbol.
nil)))