function | since v0.0-2496 | Edit |
(inc-report-counter! name)
Increments the named counter in *report-counters*, a ref to a map. Does nothing if *report-counters* is nil.
(defn inc-report-counter!
[name]
(if (:report-counters (get-current-env))
(update-current-env! [:report-counters name] (fnil inc 0))))