
clojure.core.rrb_vector.macros.clj Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-resources-viz Show documentation
Show all versions of rest-resources-viz Show documentation
Transformations and visualizations for Cortex Rest resources
The newest version!
(ns clojure.core.rrb-vector.macros
(:refer-clojure :exclude [assert]))
(def ^:const elide-assertions? true)
(def ^:const elide-debug-printouts? true)
(defmacro assert [& args]
(if-not elide-assertions?
(apply #'clojure.core/assert &form &env args)))
(defmacro dbg [& args]
(if-not elide-debug-printouts?
`(prn ~@args)))
(defmacro dbg- [& args])
(defmacro ^:private gen-vector-method [& params]
(let [arr (gensym "arr__")]
`(let [~arr (cljs.core/make-array ~(count params))]
~@(map-indexed (fn [i param]
`(cljs.core/aset ~arr ~i ~param))
params)
(clojure.core.rrb_vector.rrbt.Vector.
~(count params) 5 cljs.core.PersistentVector.EMPTY_NODE ~arr nil
~(if params nil 0)))))
© 2015 - 2025 Weber Informatics LLC | Privacy Policy