Skip to content

Commit

Permalink
[all] fix unsplicing reader conditionals due to breaking change in CL…
Browse files Browse the repository at this point in the history
…J1.7-RC1
  • Loading branch information
postspectacular committed Jun 1, 2015
1 parent b6185e6 commit 55ce0dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
5 changes: 2 additions & 3 deletions geom-core/src/matrix.org
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,8 @@ ordering (row major).
** Override print methods

#+BEGIN_SRC clojure :noweb-ref printers
#?@(:clj
[(defmethod print-method Matrix32 [^Matrix32 o ^java.io.Writer w] (.write w (.toString o)))
(defmethod print-method Matrix44 [^Matrix44 o ^java.io.Writer w] (.write w (.toString o)))])
#?(:clj (defmethod print-method Matrix32 [^Matrix32 o ^java.io.Writer w] (.write w (.toString o))))
#?(:clj (defmethod print-method Matrix44 [^Matrix44 o ^java.io.Writer w] (.write w (.toString o))))
#+END_SRC

** Constants
Expand Down
11 changes: 6 additions & 5 deletions geom-svg/src/core.org
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ libraries available and we don't want to be prescriptive here and
introduce uneccessary dependencies.

#+BEGIN_SRC clojure :noweb-ref svg
#?@(:clj
[(defn serialize
^String [svg] (str xml-preamble (html {:mode :xml} svg)))
#?(:clj
(defn serialize
^String [svg] (str xml-preamble (html {:mode :xml} svg))))

(defn serialize-as-byte-array
^bytes [svg] (.getBytes (serialize svg) "UTF-8"))])
#?(:clj
(defn serialize-as-byte-array
^bytes [svg] (.getBytes (serialize svg) "UTF-8")))
#+END_SRC

** Attribute conversion
Expand Down
11 changes: 7 additions & 4 deletions geom-types/src/spatialtree.org
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,13 @@
*** Override print methods

#+BEGIN_SRC clojure :noweb-ref impl
#?@(:clj
[(require 'clojure.pprint)
(defmethod print-method MutableQuadtreeNode [^MutableQuadtreeNode o ^java.io.Writer w] (.write w (.toString o)))
(defmethod print-method MutableOctreeNode [^MutableOctreeNode o ^java.io.Writer w] (.write w (.toString o)))])
#?(:clj
(do
(require 'clojure.pprint)
(defmethod print-method MutableQuadtreeNode
[^MutableQuadtreeNode o ^java.io.Writer w] (.write w (.toString o)))
(defmethod print-method MutableOctreeNode
[^MutableOctreeNode o ^java.io.Writer w] (.write w (.toString o)))))
#+END_SRC

** Constructors
Expand Down

0 comments on commit 55ce0dd

Please sign in to comment.