mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
Make an actual enum type for endianness.
This commit is contained in:
parent
87e0102733
commit
c6cd01a95d
@ -144,15 +144,18 @@ union PAIR64
|
||||
***************************************************************************/
|
||||
|
||||
// constants for expression endianness
|
||||
#define ENDIANNESS_LITTLE 0
|
||||
#define ENDIANNESS_BIG 1
|
||||
enum endianness_t
|
||||
{
|
||||
ENDIANNESS_LITTLE,
|
||||
ENDIANNESS_BIG
|
||||
};
|
||||
|
||||
|
||||
// declare native endianness to be one or the other
|
||||
#ifdef LSB_FIRST
|
||||
#define ENDIANNESS_NATIVE ENDIANNESS_LITTLE
|
||||
const endianness_t ENDIANNESS_NATIVE = ENDIANNESS_LITTLE;
|
||||
#else
|
||||
#define ENDIANNESS_NATIVE ENDIANNESS_BIG
|
||||
const endianness_t ENDIANNESS_NATIVE = ENDIANNESS_BIG;
|
||||
#endif
|
||||
|
||||
|
||||
@ -179,7 +182,7 @@ union PAIR64
|
||||
COMMON MACROS
|
||||
***************************************************************************/
|
||||
|
||||
// more for defining a copy constructor and assignment operator to prevent copying
|
||||
// macro for defining a copy constructor and assignment operator to prevent copying
|
||||
#define DISABLE_COPYING(_Type) \
|
||||
private: \
|
||||
_Type(const _Type &); \
|
||||
|
Loading…
Reference in New Issue
Block a user