Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Commit

Permalink
Add test for conditional with require macros
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul committed Apr 2, 2021
1 parent 31de4a4 commit 37e0caa
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(ns conditional-with-require-macros
(:require [clojure.string :as str])
#?(:cljs (:require-macros [conditional-with-require-macros :refer [my-when]])))

#?(:clj
(defmacro my-when [x]
`(when true
~x)))

(defn hello []
(my-when (println (str/join) "H" "ello")))

0 comments on commit 37e0caa

Please sign in to comment.