cljsinfo / cljs.info

ClojureScript website
http://cljs.info
MIT License
96 stars 9 forks source link

doc-generator: update defn to be a macro #30

Closed shaunlebron closed 9 years ago

shaunlebron commented 9 years ago

defn is a function, but the following line marks the symbol with the :macro key, causing it to be interpreted as a macro by the compiler. (source):

(. (var defn) (setMacro))

It is only used for defn and defmacro, which are both defined as functions first before being setMacro'd.