Function: verilog-expand-command

verilog-expand-command is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-expand-command COMMAND)

Documentation

Replace meta-information in COMMAND and return it.

Where __FLAGS__ appears in the string verilog-current-flags will be substituted. Where __FILE__ appears in the string, the current buffer's file-name, without the directory portion, will be substituted.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-expand-command (command)
  "Replace meta-information in COMMAND and return it.
Where __FLAGS__ appears in the string `verilog-current-flags'
will be substituted.  Where __FILE__ appears in the string, the
current buffer's file-name, without the directory portion, will
be substituted."
  (setq command (verilog-string-replace-matches
		 ;; Note \\b only works if under verilog syntax table
		 "\\b__FLAGS__\\b" (verilog-current-flags)
		 t t command))
  (setq command (verilog-string-replace-matches
		 "\\b__FILE__\\b" (file-name-nondirectory
                                 (or (buffer-file-name) ""))
		 t t command))
  command)