Modifying the struct prettyprinter to display bits
parent
1a2c137e41
commit
4e1aa8f638
|
@ -23,6 +23,11 @@ IN: classes.struct.prettyprint
|
||||||
[ type>> pprint-c-type ]
|
[ type>> pprint-c-type ]
|
||||||
[ read-only>> [ \ read-only pprint-word ] when ]
|
[ read-only>> [ \ read-only pprint-word ] when ]
|
||||||
[ initial>> [ \ initial: pprint-word pprint* ] when* ]
|
[ initial>> [ \ initial: pprint-word pprint* ] when* ]
|
||||||
|
[
|
||||||
|
dup struct-bit-slot-spec?
|
||||||
|
[ \ bits: pprint-word bits>> pprint* ]
|
||||||
|
[ drop ] if
|
||||||
|
]
|
||||||
} cleave block>
|
} cleave block>
|
||||||
\ } pprint-word block> ;
|
\ } pprint-word block> ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue