mirror of https://github.com/status-im/timbre.git
#72: document `defnp`'s lack of multi-arity support (@ribcakes)
This commit is contained in:
parent
f75d707208
commit
f430ed9f81
|
@ -85,7 +85,8 @@
|
|||
(if-not (< (rand) ~probability) (do ~@body)
|
||||
(profile ~level ~id ~@body))))
|
||||
|
||||
(defmacro defnp "Like `defn` but wraps body in `p` macro."
|
||||
(defmacro defnp
|
||||
"Like `defn` (single arity only) but wraps body in `p` macro."
|
||||
{:arglists '([name ?doc-string ?attr-map [params] ?prepost-map body])}
|
||||
[name & sigs]
|
||||
(let [[name [params & sigs]] (encore/name-with-attrs name sigs)
|
||||
|
|
Loading…
Reference in New Issue