Skip to content

Commit

Permalink
macro-utils: fix handling of let* and loop* forms with more than one …
Browse files Browse the repository at this point in the history
…body expression
  • Loading branch information
Konrad Hinsen committed Aug 31, 2009
1 parent cdbfc8d commit 39618b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clojure/contrib/macro_utils.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;; Macrolet and symbol-macrolet

;; by Konrad Hinsen
;; last updated August 19, 2009
;; last updated August 31, 2009

;; Copyright (c) Konrad Hinsen, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
Expand Down Expand Up @@ -122,8 +122,8 @@
exprs (rest (rest form))
expanded (expand-bindings bindings exprs)
bindings (vec (apply concat (butlast expanded)))
exprs (first (last expanded))]
(list f bindings exprs)))
exprs (last expanded)]
(cons f (cons bindings exprs))))

(defn- expand-fn-body
[[args & exprs]]
Expand Down

0 comments on commit 39618b6

Please sign in to comment.