ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibGC: Make GC::Ptr, GC::Ref, and GC::Root formattable

Open AtkinsSJ opened this issue 7 months ago • 1 comments

This is a copy of the Formatters we have for AK's pointer types.

It was annoying me having to type .ptr() whenever I wanted to dbgln() something.

AtkinsSJ avatar Apr 24 '25 13:04 AtkinsSJ

Changes: Added GC::Root too.

AtkinsSJ avatar Apr 24 '25 14:04 AtkinsSJ

After the discord discussion where we couldn't actually decide how pointer formatting should work, and that not being able to format GC pointers keeps bothering me, I'm going to go ahead and merge this for now. (It was good enough for the AK pointers, so it should be good enough.) If and when we decide what they should all do, we can change them then.

AtkinsSJ avatar May 01 '25 16:05 AtkinsSJ