summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devcpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/devcpu.h')
-rw-r--r--src/emu/devcpu.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/emu/devcpu.h b/src/emu/devcpu.h
index 3a9f218776b..8d73127e1f7 100644
--- a/src/emu/devcpu.h
+++ b/src/emu/devcpu.h
@@ -7,17 +7,14 @@
CPU device definitions.
***************************************************************************/
-
-#pragma once
-
-#ifndef __EMU_H__
-#error Dont include this file directly; include emu.h instead.
-#endif
-
#ifndef MAME_EMU_DEVCPU_H
#define MAME_EMU_DEVCPU_H
+#pragma once
+
#include "didisasm.h"
+#include "diexec.h"
+
//**************************************************************************
// CPU DEVICE CONFIGURATION MACROS
@@ -47,7 +44,7 @@
// recompilation parameters
#define MCFG_CPU_FORCE_NO_DRC() \
- dynamic_cast<cpu_device &>(*device).set_force_no_drc(true);
+ dynamic_cast<cpu_device &>(*device).set_force_no_drc(true);
@@ -64,6 +61,8 @@ class cpu_device : public device_t,
public device_disasm_interface
{
public:
+ virtual ~cpu_device();
+
// configuration helpers
void set_force_no_drc(bool value) { m_force_no_drc = value; }
bool allow_drc() const;
@@ -71,12 +70,10 @@ public:
protected:
// construction/destruction
cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock);
- virtual ~cpu_device();
private:
// configured state
bool m_force_no_drc; // whether or not to force DRC off
};
-
-#endif /* MAME_EMU_DEVCPU_H */
+#endif // MAME_EMU_DEVCPU_H