Add compiler dynvars for compatibility

This commit is contained in:
Michiel Borkent 2023-01-03 19:51:03 +01:00
parent efe4f214cc
commit 2ac1428341

View file

@ -34,6 +34,8 @@
(def compile-files (core-dynamic-var '*compile-files* false))
(def unchecked-math (core-dynamic-var '*unchecked-math* false))
(def math-context (core-dynamic-var '*math-context*))
(def compile-path (core-dynamic-var '*compile-path* *compile-path*))
(def compiler-options (core-dynamic-var '*compiler-options*))
(defn read+string
"Added for compatibility. Must be used with
@ -173,6 +175,8 @@
'*compile-files* compile-files
'*unchecked-math* unchecked-math
'*math-context* math-context
'*compiler-options* compiler-options
'*compile-path* compile-path
'with-precision (sci/copy-var with-precision clojure-core-ns)
'-with-precision (sci/copy-var -with-precision clojure-core-ns)
;; STM