mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
LibCore: Add formatter for Object.
This commit is contained in:
parent
235622dc7f
commit
56cf272ed5
2 changed files with 16 additions and 0 deletions
|
@ -264,3 +264,12 @@ const LogStream& operator<<(const LogStream& stream, const Object& object)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
namespace AK {
|
||||
|
||||
void Formatter<Core::Object>::format(TypeErasedFormatParams& params, FormatBuilder& builder, const Core::Object& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, String::formatted("{}({})", value.class_name(), &value));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue