Skip to content

Commit

Permalink
Clean up some auto usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Jul 16, 2024
1 parent 14bb3a6 commit 528d537
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler+runtime/src/jank/clojure/core.jank
Original file line number Diff line number Diff line change
Expand Up @@ -752,15 +752,14 @@

(defn pop!
([coll]
(native/raw "auto transient_coll = try_object<obj::transient_vector>(~{ coll });
(native/raw "auto transient_coll(try_object<obj::transient_vector>(~{ coll }));
__value = transient_coll->pop_in_place();")))

(defn disj!
([set] set)
([set elem]
(native/raw "auto typed_set = try_object<obj::transient_set>(~{ set });
__value = typed_set->disjoin_in_place(~{ elem });
"))
(native/raw "auto typed_set(try_object<obj::transient_set>(~{ set }));
__value = typed_set->disjoin_in_place(~{ elem });"))
([set elem & elems]
(let [ret (disj! set elem)]
(if elems
Expand Down

0 comments on commit 528d537

Please sign in to comment.