Function: make-comp-args--cmacro

make-comp-args--cmacro is a function defined in comp.el.gz.

Signature

(make-comp-args--cmacro CL-WHOLE &cl-quote &key MIN MAX)

Documentation

compiler-macro for inlining make-comp-args.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
;; Closure converted to defun by helpful.
(defun make-comp-args--cmacro
    (cl-whole &rest --cl-rest--)
  "compiler-macro for inlining `make-comp-args'.\n\n\\(fn CL-WHOLE &cl-quote &key MIN MAX)"
  (let*
      ((min
	(car
	 (cdr
	  (plist-member --cl-rest-- ':min))))
       (max
	(car
	 (cdr
	  (plist-member --cl-rest-- ':max)))))
    (progn
      (let
	  ((--cl-keys-- --cl-rest--))
	(while --cl-keys--
	  (cond
	   ((memq
	     (car --cl-keys--)
	     '(:min :max :allow-other-keys))
	    (unless
		(cdr --cl-keys--)
	      (error "Missing argument for %s"
		     (car --cl-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 (:min :max)"
		   (car --cl-keys--))))))
      (cl-block make-comp-args--cmacro
	(cl--defsubst-expand
	 '(min max)
	 '(cl-block make-comp-args
	    (record 'comp-args min max))
	 nil cl-whole nil min max)))))