1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

types.hpp: Format C arrays too for assert errors

This commit is contained in:
Elad Ashkenazi 2024-08-02 14:11:05 +03:00 committed by GitHub
parent a323e753ff
commit 70502a698e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -928,6 +928,10 @@ std::conditional_t<std::is_integral_v<std::remove_cvref_t<T>>, usz, std::string_
{ {
return obj; return obj;
} }
else if constexpr (std::is_array_v<type> && std::is_constructible_v<std::string_view, type>)
{
return { obj, std::size(obj) - 1 };
}
else else
{ {
return std::string_view{}; return std::string_view{};