File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 730
730
1 " NO_SOURCE_FILE" )
731
731
print-no-newline print
732
732
source-map-inline true
733
- repl-requires '[[cljs.repl :refer-macros [source doc find-doc apropos dir pst]]]
733
+ repl-requires '[[cljs.repl :refer-macros [source doc find-doc apropos dir pst]]
734
+ [cljs.pprint :refer [pprint] :refer-macros [pp]]]
734
735
bind-err true }
735
736
:as opts}]
736
737
(let [repl-opts (-repl-options repl-env)
Original file line number Diff line number Diff line change @@ -142,3 +142,8 @@ format-in can be either a control string or a previously compiled format."
142
142
`(cljs.core/binding [cljs.pprint/*print-pprint-dispatch* ~function]
143
143
~@body))
144
144
145
+ (defmacro pp
146
+ " A convenience macro that pretty prints the last thing output. This is
147
+ exactly equivalent to (pprint *1)."
148
+ {:added " 1.2" }
149
+ [] `(cljs.pprint/pprint *1))
You can’t perform that action at this time.
0 commit comments