mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:28:12 +00:00
CObject: Add LogStream operator<< for CObject.
This commit is contained in:
parent
2a9b627ae9
commit
b4329a8eec
1 changed files with 5 additions and 0 deletions
|
@ -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 << '}';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue