Try quoting the code you want to macro expand, like: (macroexpand-1
'(cljs.core/gen-apply-to))

Otherwise clojure would try to macroexpand the result of (gen-apply-to)
Am 21.11.2012 13:07 schrieb "László Török" <ltoro...@gmail.com>:

> Hi,
>
> How can I use macroexpand et. al to check an output of a clojurescript
> macro?
>
> As far as I know, clojurescript macros are clojure macros.
> However if I start script/repl and enter
>
> => (require 'cljs.compiler)
> => (require 'cljs.core)
> => (macroexpand-1 (cljs.core/gen-apply-to))
> CompilerException java.lang.RuntimeException: Unable to resolve symbol:
> *unchecked-if* in this context, compiling:(NO_SOURCE_PATH:5)
>
> Btw, if I don't require 'cljs.compiler first, I get
>
> CompilerException java.lang.ClassNotFoundException: cljs.compiler,
> compiling:(cljs/core.clj:411)
>
> --
> László Török
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to