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.
12 (defmacro defenum ((&key (prefix "") (suffix "") (start 0) (step 1))
18 (dolist (id identifiers)
20 (multiple-value-bind (root docs)
22 (values (car id) (cdr id))
24 (push `(defconstant ,(intern (concatenate 'simple-string
28 ,(+ start (* step index))
32 `(eval-when (:compile-toplevel :load-toplevel :execute)
33 ,@(nreverse results))))