Skip to content

Commit

Permalink
refer raise macro in cljs, silence rename warning bug (#35)
Browse files Browse the repository at this point in the history
* refer raise macro in cljs, silence rename warning bug

* exclude distinct? too
  • Loading branch information
pkpkpk authored Oct 16, 2024
1 parent e2c0f3d commit cdb4f24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datalog/parser/impl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[datalog.parser.impl.proto :as p]
[datalog.parser.impl.util :as util
#?(:cljs :refer-macros :clj :refer) [raise forv]])
(:refer-clojure :rename {distinct? core-distinct?})
(:refer-clojure :rename {distinct? core-distinct?} #?@(:cljs (:exclude (distinct?))))
#?(:clj
(:import [datalog.parser.type
Not And Or Aggregate SrcVar RulesVar RuleExpr
Expand Down
1 change: 1 addition & 0 deletions src/datalog/parser/impl/util.cljc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(ns ^:no-doc datalog.parser.impl.util
(:require [datalog.parser.impl.proto :as proto]
[clojure.string :as str])
#?(:cljs (:require-macros [datalog.parser.impl.util :refer [raise]]))
(:refer-clojure :exclude [seqable?]))

#?(:clj (set! *warn-on-reflection* true))
Expand Down
2 changes: 1 addition & 1 deletion src/datalog/parser/pull.cljc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns datalog.parser.pull
(:require [datalog.parser.impl.util :as util
#?(:cljs :refer-macros :clj :refer) [raise forv]])
(:refer-clojure :rename {pos? core-pos?}))
(:refer-clojure :rename {pos? core-pos?} #?@(:cljs (:exclude (pos?)))))

#?(:clj (set! *warn-on-reflection* true))

Expand Down

0 comments on commit cdb4f24

Please sign in to comment.