[#535] Ignore unresolved symbol in uberscript

This commit is contained in:
Michiel Borkent 2020-08-17 20:02:07 +02:00 committed by GitHub
parent 60c73d21a6
commit 418f00eb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 3 deletions

2
sci

@ -1 +1 @@
Subproject commit a92fce09210f47a8243a30e6d4a0a6febca21c27
Subproject commit c363caf975e6e98fadfb1adf9582d7f1ef6017fb

View file

@ -0,0 +1,11 @@
(ns my.impl3)
;; see https://github.com/juxt/aero/blob/743e9bc495425b4a4a7c780f5e4b09f6680b4e7a/src/aero/core.cljc#L27
;; and https://github.com/juxt/aero/blob/743e9bc495425b4a4a7c780f5e4b09f6680b4e7a/src/aero/impl/macro.cljc#L9
(defmacro usetime
[& body]
(when #?(:clj true :cljs (not (re-matches #".*\$macros" (name (ns-name *ns*)))))
`(do ~@body)))
(usetime
(defn foo []))

View file

@ -1,6 +1,10 @@
(ns my.main
(:require [my.impl :as impl])
(:require [my.impl2 :as impl2]))
(:require [my.impl :as impl] ;; my.impl is already loaded, so it will not be loaded again (normally)
[my.impl2] ;; but my.impl2 also loads my.impl
[my.impl3 :as impl3]))
(defn -main [& args]
;; this function is defined non-top-level and may cause problems
(impl3/foo)
;; this should just return args
(impl/impl-fn args))