Using eval-when makes this work when cross-compiling.

This commit is contained in:
jjgarcia 2006-01-16 13:19:47 +00:00
parent 20d4765883
commit 98a3cc7ac9

View file

@ -491,7 +491,7 @@ returns with NIL."
;;; only created when the error is signaled.
;;;
#+ecl-min
(eval-when (compile eval)
(defconstant +all-conditions+ (mapcar #'cdr '(
(define-condition warning () ())
@ -640,6 +640,7 @@ returns with NIL."
(format-error-control-string condition)
(format-error-offset condition)))))
)))
); nehw-lave
(dolist (expression '#.+all-conditions+)
(eval (list* 'define-condition expression)))