1 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; This software is derived from the CMU CL system, which was
5 ;;;; written at Carnegie Mellon University and released into the
6 ;;;; public domain. The software is in the public domain and is
7 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
8 ;;;; files for more information.
15 (defmacro defenum ((&key (prefix "") (suffix "") (start 0) (step 1))
21 (dolist (id identifiers)
23 (multiple-value-bind (root docs)
25 (values (car id) (cdr id))
27 (push `(defconstant ,(intern (concatenate 'simple-string
31 ,(+ start (* step index))
35 `(eval-when (:compile-toplevel :load-toplevel :execute)
36 ,@(nreverse results))))