defmacro expansion uses eval-when
authorDavid Vázquez <davazp@gmail.com>
Thu, 29 Aug 2013 16:45:09 +0000 (18:45 +0200)
committerDavid Vázquez <davazp@gmail.com>
Thu, 29 Aug 2013 16:45:09 +0000 (18:45 +0200)
src/boot.lisp

index 1b3541c..4dead5c 100644 (file)
 
 (/debug "loading boot.lisp!")
 
-(eval-when-compile
+(eval-when (:compile-toplevel)
   (let ((defmacro-macroexpander
          '#'(lambda (form)
               (destructuring-bind (name args &body body)
                   form
                 (let ((whole (gensym)))
-                  `(eval-when-compile
+                  `(eval-when (:compile-toplevel :execute)
                      (%compile-defmacro ',name
                                         '#'(lambda (,whole)
                                              (destructuring-bind ,args ,whole