We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9773903 commit 1615831Copy full SHA for 1615831
binaryninjaapi.h
@@ -20976,6 +20976,8 @@ template<typename T> struct fmt::formatter<BinaryNinja::Ref<T>>
20976
fmt::formatter<T> inner;
20977
format_context::iterator format(const BinaryNinja::Ref<T>& obj, format_context& ctx) const
20978
{
20979
+ if (obj.GetPtr() == nullptr)
20980
+ return fmt::format_to(ctx.out(), "{}", "<null>");
20981
return inner.format(*obj.GetPtr(), ctx);
20982
}
20983
constexpr auto parse(format_parse_context& ctx) -> format_parse_context::iterator { return inner.parse(ctx); }
0 commit comments