projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add SB-EXT:*SUPPRESS-PRINT-ERRORS* modelled after *BREAK-ON-SIGNALS*
[sbcl.git]
/
src
/
pcl
/
print-object.lisp
diff --git
a/src/pcl/print-object.lisp
b/src/pcl/print-object.lisp
index
50153b2
..
7711dab
100644
(file)
--- a/
src/pcl/print-object.lisp
+++ b/
src/pcl/print-object.lisp
@@
-46,7
+46,10
@@
(fmakunbound 'print-object)
(defgeneric print-object (object stream))
(defmethod print-object ((x t) stream)
(fmakunbound 'print-object)
(defgeneric print-object (object stream))
(defmethod print-object ((x t) stream)
- (print-unreadable-object (x stream :type t :identity t))))
+ (if *print-pretty*
+ (pprint-logical-block (stream nil)
+ (print-unreadable-object (x stream :type t :identity t)))
+ (print-unreadable-object (x stream :type t :identity t)))))
(/show0 "done replacing placeholder PRINT-OBJECT with DEFGENERIC")
\f
;;;; a hook called by the printer to take care of dispatching to PRINT-OBJECT
(/show0 "done replacing placeholder PRINT-OBJECT with DEFGENERIC")
\f
;;;; a hook called by the printer to take care of dispatching to PRINT-OBJECT
@@
-143,3
+146,8
@@
(defmethod print-object ((dfun-info dfun-info) stream)
(declare (type stream stream))
(print-unreadable-object (dfun-info stream :type t :identity t)))
(defmethod print-object ((dfun-info dfun-info) stream)
(declare (type stream stream))
(print-unreadable-object (dfun-info stream :type t :identity t)))
+
+(defmethod print-object ((ctor ctor) stream)
+ (print-unreadable-object (ctor stream :type t)
+ (format stream "~S ~:S" (ctor-class-or-name ctor) (ctor-initargs ctor)))
+ ctor)