Function: make-ert-test-aborted-with-non-local-exit--cmacro

make-ert-test-aborted-with-non-local-exit--cmacro is a function defined in ert.el.gz.

Signature

(make-ert-test-aborted-with-non-local-exit--cmacro CL-WHOLE &cl-quote &key MESSAGES SHOULD-FORMS DURATION)

Documentation

compiler-macro for inlining make-ert-test-aborted-with-non-local-exit.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
;; Closure converted to defun by helpful.
(defun make-ert-test-aborted-with-non-local-exit--cmacro
    (cl-whole &rest --cl-rest--)
  "compiler-macro for inlining `make-ert-test-aborted-with-non-local-exit'.\n\n\\(fn CL-WHOLE &cl-quote &key MESSAGES SHOULD-FORMS DURATION)"
  (let*
      ((messages
	(car
	 (cdr
	  (plist-member --cl-rest-- ':messages))))
       (should-forms
	(car
	 (cdr
	  (plist-member --cl-rest-- ':should-forms))))
       (duration
	(car
	 (cdr
	  (or
	   (plist-member --cl-rest-- ':duration)
	   '(nil 0))))))
    (progn
      (let
	  ((--cl-keys-- --cl-rest--))
	(while --cl-keys--
	  (cond
	   ((memq
	     (car --cl-keys--)
	     '(:messages :should-forms :duration :allow-other-keys))
	    (setq --cl-keys--
		  (cdr
		   (cdr --cl-keys--))))
	   ((car
	     (cdr
	      (memq ':allow-other-keys --cl-rest--)))
	    (setq --cl-keys-- nil))
	   (t
	    (error "Keyword argument %s not one of (:messages :should-forms :duration)"
		   (car --cl-keys--))))))
      (cl-block make-ert-test-aborted-with-non-local-exit--cmacro
	(cl--defsubst-expand
	 '(messages should-forms duration)
	 '(cl-block make-ert-test-aborted-with-non-local-exit
	    (record 'ert-test-aborted-with-non-local-exit messages should-forms duration))
	 nil cl-whole nil messages should-forms duration)))))