mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
cpu/nec: use anonymous namespaces to avoid ODR violations with enums
This commit is contained in:
parent
461b8338a2
commit
2a342ec7c9
@ -1883,10 +1883,10 @@ if (CPUS["NEC"]~=null) then
|
||||
MAME_DIR .. "src/devices/cpu/nec/nec80inst.hxx",
|
||||
MAME_DIR .. "src/devices/cpu/nec/necmacro.h",
|
||||
MAME_DIR .. "src/devices/cpu/nec/necmodrm.h",
|
||||
MAME_DIR .. "src/devices/cpu/nec/necpriv.h",
|
||||
MAME_DIR .. "src/devices/cpu/nec/necpriv.ipp",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25instr.h",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25instr.hxx",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25priv.h",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25priv.ipp",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25.cpp",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25.h",
|
||||
MAME_DIR .. "src/devices/cpu/nec/v25sfr.cpp",
|
||||
|
@ -107,6 +107,7 @@
|
||||
#include "emu.h"
|
||||
#include "nec.h"
|
||||
#include "necdasm.h"
|
||||
|
||||
#include "debugger.h"
|
||||
|
||||
typedef uint8_t BOOLEAN;
|
||||
@ -114,7 +115,7 @@ typedef uint8_t BYTE;
|
||||
typedef uint16_t WORD;
|
||||
typedef uint32_t DWORD;
|
||||
|
||||
#include "necpriv.h"
|
||||
#include "necpriv.ipp"
|
||||
|
||||
DEFINE_DEVICE_TYPE(V20, v20_device, "v20", "NEC V20")
|
||||
DEFINE_DEVICE_TYPE(V30, v30_device, "v30", "NEC V30")
|
||||
|
@ -1,5 +1,8 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Bryan McPhail
|
||||
|
||||
namespace {
|
||||
|
||||
/* Cpu types, steps of 8 to help the cycle count calculation */
|
||||
#define V33_TYPE 0
|
||||
#define V30_TYPE 8
|
||||
@ -128,3 +131,5 @@ enum BREGS {
|
||||
m_OverVal = (f) & 0x0800; \
|
||||
m_MF = (((f) & 0x8000) == 0x8000) || m_em; \
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
@ -35,6 +35,9 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "v25.h"
|
||||
#include "necdasm.h"
|
||||
|
||||
#include "debugger.h"
|
||||
|
||||
typedef uint8_t BOOLEAN;
|
||||
@ -42,9 +45,8 @@ typedef uint8_t BYTE;
|
||||
typedef uint16_t WORD;
|
||||
typedef uint32_t DWORD;
|
||||
|
||||
#include "v25.h"
|
||||
#include "v25priv.h"
|
||||
#include "necdasm.h"
|
||||
#include "v25priv.ipp"
|
||||
|
||||
|
||||
DEFINE_DEVICE_TYPE(V25, v25_device, "v25", "NEC V25")
|
||||
DEFINE_DEVICE_TYPE(V35, v35_device, "v35", "NEC V35")
|
||||
|
@ -1,5 +1,8 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Bryan McPhail, Alex W. Jackson
|
||||
|
||||
namespace {
|
||||
|
||||
/* Cpu types, steps of 8 to help the cycle count calculation */
|
||||
#define V33_TYPE 0
|
||||
#define V30_TYPE 8
|
||||
@ -186,3 +189,5 @@ enum BREGS {
|
||||
/* RB only changes on BRKCS/RETRBI/TSKSW, so skip it */ \
|
||||
m_MF = ((f) & 0x8000) == 0x8000; \
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "emu.h"
|
||||
#include "v25.h"
|
||||
#include "v25priv.h"
|
||||
#include "v25priv.ipp"
|
||||
|
||||
void v25_common_device::ida_sfr_map(address_map &map)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "emu.h"
|
||||
#include "v5x.h"
|
||||
|
||||
#include "necpriv.h"
|
||||
#include "necpriv.ipp"
|
||||
|
||||
#define VERBOSE 0
|
||||
#include "logmacro.h"
|
||||
|
Loading…
Reference in New Issue
Block a user