mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
endianness.h: Use namespace std::literals
This commit is contained in:
parent
ccaa00b3ed
commit
e5cf065ccb
@ -39,7 +39,7 @@ enum class endianness
|
||||
// MACROS AND INLINE FUNCTIONS
|
||||
//**************************************************************************
|
||||
|
||||
constexpr std::string_view endian_to_string_view(endianness e) { return e == endianness::little ? "little" : "big"; }
|
||||
constexpr std::string_view endian_to_string_view(endianness e) { using namespace std::literals; return e == endianness::little ? "little"sv : "big"sv; }
|
||||
|
||||
// endian-based value: first value is if native endianness is little-endian, second is if native is big-endian
|
||||
#define NATIVE_ENDIAN_VALUE_LE_BE(leval,beval) ((util::endianness::native == util::endianness::little) ? (leval) : (beval))
|
||||
|
Loading…
Reference in New Issue
Block a user