Function: verilog-batch-error-wrapper

verilog-batch-error-wrapper is a macro defined in verilog-mode.el.gz.

Signature

(verilog-batch-error-wrapper &rest BODY)

Documentation

Execute BODY and add error prefix to any errors found.

This lets programs calling batch mode to easily extract error messages.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defmacro verilog-batch-error-wrapper (&rest body)
  "Execute BODY and add error prefix to any errors found.
This lets programs calling batch mode to easily extract error messages."
  `(let ((verilog-warn-fatal nil))
     (condition-case err
	 (progn ,@body)
       (error
	(error "%%Error: %s%s" (error-message-string err)
               (if (featurep 'xemacs) "\n" ""))))))  ; XEmacs forgets to add a newline