Browse Source

the humble string_view

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2755/head
crueter 5 months ago
parent
commit
eb9a8206d5
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 10
      src/dynarmic/src/dynarmic/ir/opcodes.h

10
src/dynarmic/src/dynarmic/ir/opcodes.h

@ -654,3 +654,13 @@ constexpr bool MayGetNZCVFromOp(const Opcode op) noexcept {
}
} // namespace Dynarmic::IR
template<>
struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string_view>
{
template<typename FormatContext>
auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const
{
return formatter<std::string_view>::format(Dynarmic::IR::GetNameOf(op), ctx);
}
};
Loading…
Cancel
Save