This commit is contained in:
Michiel Borkent 2022-10-02 12:02:56 +02:00
parent 3d4510f1ea
commit c9c233ec32
2 changed files with 26 additions and 18 deletions

View file

@ -150,7 +150,7 @@
(.applyTo ^clojure.lang.IFn f args))))) (.applyTo ^clojure.lang.IFn f args)))))
;; orchestra is going to override this ;; orchestra is going to override this
(def spec-checking-fn-var (sci/copy-var spec-checking-fn* tns)) (def spec-checking-fn-var (sci/new-var 'spec-checking-fn spec-checking-fn* {:ns tns}))
(defn- no-fspec (defn- no-fspec
[v spec] [v spec]

View file

@ -1128,7 +1128,15 @@ Use bb run --help to show this help output.
;;;; Scratch ;;;; Scratch
(defn where-am-i [depth] (defmacro in-native-image-or-aot
[& body]
`(when (or (System/getProperty "org.graalvm.nativeimage.kind")
(System/getProperty "com.oracle.graalvm.isaot"))
~@body))
(in-native-image-or-aot
#_(defn where-am-i [depth]
(let [ks [:fileName :lineNumber :className]] (let [ks [:fileName :lineNumber :className]]
(clojure.pprint/print-table (clojure.pprint/print-table
ks ks
@ -1145,6 +1153,6 @@ Use bb run --help to show this help output.
(fn [_old-req] (fn [_old-req]
(fn [& args] (fn [& args]
(prn :requiring-resolve-args args) (prn :requiring-resolve-args args)
(System/exit 1)))) (System/exit 1)))))
(comment) (comment)