From 70502a698e8f428bd241a868951af1f33e81caa7 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi <18193363+elad335@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:11:05 +0300 Subject: [PATCH] types.hpp: Format C arrays too for assert errors --- rpcs3/util/types.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/util/types.hpp b/rpcs3/util/types.hpp index c686352c2e..a102a12bea 100644 --- a/rpcs3/util/types.hpp +++ b/rpcs3/util/types.hpp @@ -928,6 +928,10 @@ std::conditional_t>, usz, std::string_ { return obj; } + else if constexpr (std::is_array_v && std::is_constructible_v) + { + return { obj, std::size(obj) - 1 }; + } else { return std::string_view{};