mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
CObject: Add LogStream operator<< for CObject.
This commit is contained in:
@@ -99,3 +99,8 @@ inline void CObject::for_each_child_of_type(Callback callback)
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const CObject& object)
|
||||
{
|
||||
return stream << object.class_name() << '{' << &object << '}';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user