X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler-codegen.lisp;h=d624b0ea2b44be78f47000d644f05d9e77630bf3;hb=25d3ce6406a74dca652ff4bb27f025986626958a;hp=87a37407968c5452d50f33b5d7278a67f8774d54;hpb=4267e51b95191cbb22c5976fd99689fe0cc5b1f4;p=jscl.git diff --git a/src/compiler-codegen.lisp b/src/compiler-codegen.lisp index 87a3740..d624b0e 100644 --- a/src/compiler-codegen.lisp +++ b/src/compiler-codegen.lisp @@ -37,11 +37,11 @@ (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))