restore pprint stack when c-object pprinters fail so that the fallback pprint syntax is still clickable
parent
79be927371
commit
52a5a22b9d
|
@ -154,10 +154,14 @@ M: pathname pprint*
|
||||||
M: tuple pprint*
|
M: tuple pprint*
|
||||||
pprint-tuple ;
|
pprint-tuple ;
|
||||||
|
|
||||||
|
: recover-pprint ( try recovery -- )
|
||||||
|
pprinter-stack get clone
|
||||||
|
[ pprinter-stack set ] curry prepose recover ; inline
|
||||||
|
|
||||||
: pprint-c-object ( object content-quot pointer-quot -- )
|
: pprint-c-object ( object content-quot pointer-quot -- )
|
||||||
[ c-object-pointers? get ] 2dip
|
[ c-object-pointers? get ] 2dip
|
||||||
[ nip ]
|
[ nip ]
|
||||||
[ [ drop ] prepose [ recover ] 2curry ] 2bi if ; inline
|
[ [ drop ] prepose [ recover-pprint ] 2curry ] 2bi if ; inline
|
||||||
|
|
||||||
: do-length-limit ( seq -- trimmed n/f )
|
: do-length-limit ( seq -- trimmed n/f )
|
||||||
length-limit get dup [
|
length-limit get dup [
|
||||||
|
|
Loading…
Reference in New Issue