%compile-defmacro compiles the name as a symbol
authorDavid Vázquez <davidv@eyecarepro.net>
Wed, 16 Jan 2013 12:41:15 +0000 (12:41 +0000)
committerDavid Vázquez <davidv@eyecarepro.net>
Wed, 16 Jan 2013 12:41:15 +0000 (12:41 +0000)
ecmalisp.lisp

index 071879e..31f67fa 100644 (file)
@@ -24,8 +24,6 @@
 
 #+ecmalisp
 (progn
-
-  'defmacro
   (eval-when-compile
     (%compile-defmacro 'defmacro
                        '(lambda (name args &rest body)
   (reverse (remove-if #'null-or-empty-p *toplevel-compilations*)))
 
 (defun %compile-defmacro (name lambda)
+  (toplevel-compilation (ls-compile `',name))
   (push-to-lexenv (make-binding name 'macro lambda t) *environment* 'function))
 
 (defvar *compilations* nil)