Skip to content

Commit b4329a8

Browse files
committed
CObject: Add LogStream operator<< for CObject.
1 parent 2a9b627 commit b4329a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Libraries/LibCore/CObject.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,8 @@ inline void CObject::for_each_child_of_type(Callback callback)
9999
return IterationDecision::Continue;
100100
});
101101
}
102+
103+
inline const LogStream& operator<<(const LogStream& stream, const CObject& object)
104+
{
105+
return stream << object.class_name() << '{' << &object << '}';
106+
}

0 commit comments

Comments
 (0)