File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 2020
2121(in-package " SYS" )
2222
23+ ; ;; The guts of print-unreadable-object, inspired by SBCL. This is
24+ ; ;; a redefinition of the function in iolib.lisp which add support
25+ ; ;; for pprint-logical-block.
26+ (defun %print-unreadable-object (object stream type identity body)
27+ (cond (*print-readably*
28+ (error ' print-not-readable :object object))
29+ ((and *print-pretty* (pretty-stream-p stream ))
30+ (pprint-logical-block (stream nil :prefix " #<" :suffix " >" )
31+ (print-unreadable-object-contents object stream type identity body)))
32+ (t
33+ (write-string " #<" stream )
34+ (print-unreadable-object-contents object stream type identity body)
35+ (write-char #\> stream )))
36+ nil )
37+
2338; ;;; Format directive definition macros and runtime support.
2439
2540(defmacro expander-pprint-next-arg (string offset)
You can’t perform that action at this time.
0 commit comments