mirror of
https://github.com/status-im/timbre.git
synced 2025-01-29 21:25:58 +00:00
misc hk
This commit is contained in:
parent
ef921d5662
commit
6218048a42
@ -105,7 +105,7 @@
|
||||
(perc accounted clock-time) (ft accounted)))))
|
||||
|
||||
(defmacro defnp "Like `defn` but wraps body in `p` macro."
|
||||
{:arglists '([name doc-string? attr-map? [params] prepost-map? body])}
|
||||
{:arglists '([name ?doc-string ?attr-map [params] ?prepost-map body])}
|
||||
[name & sigs]
|
||||
(let [[name [params & sigs]] (macro/name-with-attributes name sigs)
|
||||
prepost-map (when (and (map? (first sigs)) (next sigs)) (first sigs))
|
||||
|
Loading…
x
Reference in New Issue
Block a user