title: can cljc single-file macro definitions to work with clojurescript?
body: <p>I have clojurescript successfully importing macros from other namespaces. But I wonder whether a single-file construction is/should be possible with clojure 1.7, such that a macro can be defined and used. What I have tried does not work, but maybe I've missed a detail someplace.</p>
  
  <pre><code>(ns cljc.core)
  
  #?(:cljs
  (enable-console-print!))
  
  #?(:clj
  (defmacro list-macro [x y]
    `(list ~x ~y)))
  
  (defn foo [a]
    (println (list-macro a a)))
  
  (foo :a)
  </code></pre>
  
  <p>This form fails with <code>list-macro</code> being undefined when compiling cljs; if I remove the :clj guard around list-macro, then defmacro is undefined within the cljs compilation. Is there a way?</p>