DEFCONSTANT cannot have implicit compile-time side effects because it breaks our constants that use FFI

This commit is contained in:
jjgarcia 2008-08-19 10:26:43 +00:00
parent adf8f1300f
commit 2bbd1cf646

View file

@ -101,8 +101,7 @@ as a VARIABLE doc and can be retrieved by (documentation 'NAME 'variable)."
(defmacro defconstant (&whole whole var form &optional doc-string)
`(PROGN
(eval-when (:compile-toplevel :load-toplevel :execute)
(SYS:*MAKE-CONSTANT ',var ,form))
(SYS:*MAKE-CONSTANT ',var ,form)
,@(si::expand-set-documentation var 'variable doc-string)
,(ext:register-with-pde whole)
(eval-when (:compile-toplevel)