mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
CObject: Add LogStream operator<< for CObject.
This commit is contained in:
parent
2a9b627ae9
commit
b4329a8eec
Notes:
sideshowbarker
2024-07-19 13:16:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b4329a8eecc
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…
Reference in a new issue