Secondary value in js macroexpanders to inhibit macroexpansion
authorDavid Vázquez <davazp@gmail.com>
Fri, 5 Jul 2013 12:24:53 +0000 (14:24 +0200)
committerDavid Vázquez <davazp@gmail.com>
Fri, 5 Jul 2013 12:24:53 +0000 (14:24 +0200)
src/compiler-codegen.lisp

index 87a3740..d624b0e 100644 (file)
 (defun js-macroexpand (js)
   (if (and (consp js) (assoc (car js) *js-macros*))
       (let ((expander (cdr (assoc (car js) *js-macros*))))
-        (multiple-value-bind (expansion expand-more-p)
+        (multiple-value-bind (expansion stop-expand-p)
             (funcall expander (cdr js))
-          (if expand-more-p
-              (js-macroexpand expansion)
-              expansion)))
+          (if stop-expand-p
+              expansion
+              (js-macroexpand expansion))))
       js))