Function: noreturn

noreturn is a macro defined in subr.el.gz.

Signature

(noreturn FORM)

Documentation

Evaluate FORM, expecting it not to return.

If FORM does return, signal an error.

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defmacro noreturn (form)
  "Evaluate FORM, expecting it not to return.
If FORM does return, signal an error."
  (declare (debug t))
  `(prog1 ,form
     (error "Form marked with `noreturn' did return")))