summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes_ctrl/ctrl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes_ctrl/ctrl.h')
-rw-r--r--src/devices/bus/nes_ctrl/ctrl.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/devices/bus/nes_ctrl/ctrl.h b/src/devices/bus/nes_ctrl/ctrl.h
index 54faa60aa90..6442f6d2709 100644
--- a/src/devices/bus/nes_ctrl/ctrl.h
+++ b/src/devices/bus/nes_ctrl/ctrl.h
@@ -10,10 +10,10 @@
**********************************************************************/
-#pragma once
+#ifndef MAME_BUS_NES_CTRL_CTRL_H
+#define MAME_BUS_NES_CTRL_CTRL_H
-#ifndef __NES_CONTROL_PORT__
-#define __NES_CONTROL_PORT__
+#pragma once
//**************************************************************************
@@ -28,15 +28,16 @@ class device_nes_control_port_interface : public device_slot_card_interface
{
public:
// construction/destruction
- device_nes_control_port_interface(const machine_config &mconfig, device_t &device);
virtual ~device_nes_control_port_interface();
- virtual uint8_t read_bit0() { return 0; };
- virtual uint8_t read_bit34() { return 0; };
- virtual uint8_t read_exp(offs_t offset) { return 0; };
- virtual void write(uint8_t data) { };
+ virtual uint8_t read_bit0() { return 0; }
+ virtual uint8_t read_bit34() { return 0; }
+ virtual uint8_t read_exp(offs_t offset) { return 0; }
+ virtual void write(uint8_t data) { }
protected:
+ device_nes_control_port_interface(const machine_config &mconfig, device_t &device);
+
nes_control_port_device *m_port;
};
@@ -72,7 +73,7 @@ protected:
// device type definition
-extern const device_type NES_CONTROL_PORT;
+DECLARE_DEVICE_TYPE(NES_CONTROL_PORT, nes_control_port_device)
//**************************************************************************
@@ -99,4 +100,4 @@ SLOT_INTERFACE_EXTERN( fc_control_port2_devices );
SLOT_INTERFACE_EXTERN( fc_expansion_devices );
-#endif
+#endif // MAME_BUS_NES_CTRL_CTRL_H