Skip to content

Commit

Permalink
clojure-core
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Nov 23, 2024
1 parent 52d37f5 commit b9f8dc1
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/sci/impl/namespaces.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,17 @@
'postwalk-replace (copy-var clojure.walk/postwalk-replace clojure-walk-namespace)
'macroexpand-all macroexpand-all})

;; necessary to work around method code too large error
(def additional-map {'locking (macrofy 'locking locking*)
'-locking-impl (copy-var -locking-impl clojure-core-ns)})

(def clojure-core (merge clojure-core* additional-map))
;; #_#?(:clj (alter-var-root #'clojure-core assoc
;; 'locking (macrofy 'locking locking*)
;; '-locking-impl (copy-var -locking-impl clojure-core-ns))
;; :cljs (set! clojure-core (assoc clojure-core
;; 'locking (macrofy 'locking locking*))))

(def namespaces
{#?@(:clj ['clojure.lang clojure-lang])
'clojure.core clojure-core
Expand Down Expand Up @@ -2009,16 +2020,3 @@
'sci.impl.records sci-impl-records
'sci.impl.deftype sci-impl-deftype
'sci.impl.protocols sci-impl-protocols}))

(macros/usetime
;; necessary to work around method code too large error
(def additional-map {'locking (macrofy 'locking locking*)
'-locking-impl (copy-var -locking-impl clojure-core-ns)})

(def clojure-core (merge clojure-core* additional-map))
;; #_#?(:clj (alter-var-root #'clojure-core assoc
;; 'locking (macrofy 'locking locking*)
;; '-locking-impl (copy-var -locking-impl clojure-core-ns))
;; :cljs (set! clojure-core (assoc clojure-core
;; 'locking (macrofy 'locking locking*))))
)

0 comments on commit b9f8dc1

Please sign in to comment.