Function: cps--add-state

cps--add-state is a byte-compiled function defined in generator.el.gz.

Signature

(cps--add-state KIND BODY)

Documentation

Create a new CPS state of KIND with BODY and return the state's name.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/generator.el.gz
(defun cps--add-state (kind body)
  "Create a new CPS state of KIND with BODY and return the state's name."
  (declare (indent 1))
  (let ((state (cps--gensym "cps-state-%s-" kind)))
    (push (list state body cps--cleanup-function) cps--states)
    (push state cps--bindings)
    state))