aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <cbeok@protonmail.com>2020-07-14 10:32:38 -0500
committerColin Okay <cbeok@protonmail.com>2020-07-14 10:32:38 -0500
commit1b06f7b323b221243a1fdffcb3fc8c6d23ef2754 (patch)
tree7fb5cca486dca0f5a7951876dfa95a8b5e5b5185
parentcc03f9b4985d802661cc9e1c8778188522f0ed6e (diff)
cleanup
-rw-r--r--macros.lisp9
1 files changed, 3 insertions, 6 deletions
diff --git a/macros.lisp b/macros.lisp
index c354a89..bd564ba 100644
--- a/macros.lisp
+++ b/macros.lisp
@@ -43,17 +43,14 @@ higher order functions:
#(1 2 3 4)
\"ffffffffff\")))
(#\y 3 #\f)"
- (let ((new-params (list))
- (calls-to-$$ 0))
+ (let ((new-params (list)))
(subst-if t (constantly nil) expr
:key (lambda (x)
(when (is-substitute-var x)
(pushnew x new-params))
(when (eql '$$ x)
- (incf calls-to-$$))))
- (if (not (zerop calls-to-$$))
- (error "$$ cannot be nested")
- `(lambda ,(reverse new-params) ,expr))))
+ (error "$$ cannot be nested"))))
+ `(lambda ,(reverse new-params) ,expr)))