            (-> (:*cljs-dep-set* bound-vars) meta :dep-path)))
        (if (seq deps)
          (let [dep (first deps)]
-           (when (:verbose opts)
-             (debug-prn "Loading" dep))
            (require bound-vars dep opts
              (fn [res]
                (if-not (:error res)

                       (cb res)
                       (if (:*load-macros* bound-vars)
                        (do
                          (when (:verbose opts) (debug-prn "Loading :use-macros"))
                          (load-macros bound-vars :use-macros use-macros reload reloads opts
                            (fn [res]
                              (if (:error res)
                                (cb res)
                                (do
                                  (when (:verbose opts) (debug-prn "Loading :require-macros"))
                                  (load-macros bound-vars :require-macros require-macros reloads reloads opts
                                    (fn [res]
                                      (if (:error res)
                                        (cb res)
                                        (let [res (try
                                                    (when (seq use-macros)
                                                      (when (:verbose opts) (debug-prn "Checking :use-macros"))
                                                      (ana/check-use-macros use-macros env))
                                                    {:value nil}
                                                    (catch :default cause


(defn load-macros [bound-vars k macros reload reloads opts cb]
  (if (seq macros)
    (let [nsym (first (vals macros))
          k    (or (k reload)
                   (get-in reloads [k nsym])
                   (and (= nsym name) (:*reload-macros* bound-vars) :reload))]
      (require bound-vars nsym k (assoc opts :macros-ns true)
        (fn [res]
          (if-not (:error res)
            (load-macros bound-vars k (next macros) reload reloads opts cb)
            (cb res)))))
    (cb {:value nil})))

(defn ns-side-effects
