Browse Source
the humble string_view
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2755/head
crueter
5 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
10 additions and
0 deletions
-
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); |
|
|
|
} |
|
|
|
}; |