DEFINE-CONSTANT macro needs to be defined earlier.

This commit is contained in:
gheber 2014-12-31 10:46:12 -06:00
parent 36b7046b78
commit e8d0011910

View File

@ -9,6 +9,12 @@
;;(PROCLAIM '(OPTIMIZE (speed 3) (safety 1) (space 0) (debug 0)))
(DECLAIM '(OPTIMIZE (speed 0) (space 0) (debug 3)))
;; Don't mess with ANSI's definition of DEFCONSTANT!
(DEFMACRO DEFINE-CONSTANT (name value &optional doc)
`(defconstant ,name (if (boundp ',name) (symbol-value ',name) ,value)
,@(when doc (list doc))))
;; globals from cat-init.lisp
(DEFVAR *CMBN-CONTROL*)
@ -141,15 +147,3 @@
(DEFVAR *SMGR-LIST*)
(SETF *SMGR-LIST* +empty-list+)
(PUSHNEW '*SMGR-LIST* *list-list*)
;; Don't mess with ANSI's definition of DEFCONSTANT!
(DEFMACRO DEFINE-CONSTANT (name value &optional doc)
`(defconstant ,name (if (boundp ',name) (symbol-value ',name) ,value)
,@(when doc (list doc))))