]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/cl-preloaded.el
Merge from origin/emacs-24
[gnu-emacs] / lisp / emacs-lisp / cl-preloaded.el
index 03045de509aa4ee371190613be125094ecb06425..401d34b449e56cb5ff81a4d80a0a37a9a97b266b 100644 (file)
 
 ;;; Code:
 
+(eval-when-compile (require 'cl-lib))
+
 (defun cl-struct-define (name docstring parent type named slots children-sym
                               tag print-auto)
+  (cl-assert (or type (equal '(cl-tag-slot) (car slots))))
+  (cl-assert (or type (not named)))
   (if (boundp children-sym)
       (add-to-list children-sym tag)
     (set children-sym (list tag)))