projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0105d7b
)
Secondary value in js macroexpanders to inhibit macroexpansion
author
David Vázquez
<davazp@gmail.com>
Fri, 5 Jul 2013 12:24:53 +0000
(14:24 +0200)
committer
David Vázquez
<davazp@gmail.com>
Fri, 5 Jul 2013 12:24:53 +0000
(14:24 +0200)
src/compiler-codegen.lisp
patch
|
blob
|
history
diff --git
a/src/compiler-codegen.lisp
b/src/compiler-codegen.lisp
index
87a3740
..
d624b0e
100644
(file)
--- 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))