0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 00:28:20 -05:00
penpot/frontend/uxbox/util/syntax.cljc
2016-01-08 01:45:06 +02:00

9 lines
192 B
Clojure

(ns uxbox.util.syntax
(:refer-clojure :exclude [defonce]))
(defmacro define-once
[& body]
(let [sym (gensym "uxbox-")]
`(cljs.core/defonce ~sym
(do ~@body
nil))))