Namespaces

 
0.2.0-SNAPSHOT Arrow_down_16x16

when-feature

clj-ssh.ssh

  • (when-feature feature-name & body)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clj_ssh/ssh.clj:64 top

(defmacro when-feature
  [feature-name & body]
  (if (find-var (symbol "clojure.core" (name feature-name)))
    `(do ~@body)))
Vars in clj-ssh.ssh/when-feature: defmacro find-var name symbol concat list seq
Used in 0 other vars

Comments top

No comments for when-feature. Log in to add a comment.