From c6cd01a95d0d7184dff3a17e44c62befcf98d5f8 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 20 Jan 2010 17:24:42 +0000 Subject: [PATCH] Make an actual enum type for endianness. --- src/emu/emucore.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/emu/emucore.h b/src/emu/emucore.h index 0152d2f61fc..ba54b364fcf 100644 --- a/src/emu/emucore.h +++ b/src/emu/emucore.h @@ -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 &); \