summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/centronics/nec_p72.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/centronics/nec_p72.h')
-rw-r--r--src/devices/bus/centronics/nec_p72.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/devices/bus/centronics/nec_p72.h b/src/devices/bus/centronics/nec_p72.h
index 1957dfb40c4..c34e1886c17 100644
--- a/src/devices/bus/centronics/nec_p72.h
+++ b/src/devices/bus/centronics/nec_p72.h
@@ -1,10 +1,10 @@
// license:BSD-3-Clause
// copyright-holders:Ramiro Polla
-#pragma once
+#ifndef MAME_BUS_CENTRONICS_NEC_P72_H
+#define MAME_BUS_CENTRONICS_NEC_P72_H
-#ifndef __NEC_P72__
-#define __NEC_P72__
+#pragma once
#include "ctronics.h"
#include "cpu/nec/nec.h"
@@ -13,24 +13,22 @@
// TYPE DEFINITIONS
//**************************************************************************
-// ======================> nec_p72_t
+// ======================> nec_p72_device
-class nec_p72_t : public device_t,
+class nec_p72_device : public device_t,
public device_centronics_peripheral_interface
{
public:
// construction/destruction
- nec_p72_t(const machine_config &mconfig, const char *tag,
- device_t *owner, uint32_t clock);
- nec_p72_t(const machine_config &mconfig, device_type type,
- const char *name, const char *tag, device_t *owner,
- uint32_t clock, const char *shortname, const char *source);
+ nec_p72_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// optional information overrides
virtual const tiny_rom_entry *device_rom_region() const override;
virtual machine_config_constructor device_mconfig_additions() const override;
protected:
+ nec_p72_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
// device-level overrides
virtual void device_start() override;
@@ -39,6 +37,6 @@ private:
};
// device type definition
-extern const device_type NEC_P72;
+DECLARE_DEVICE_TYPE(NEC_P72, nec_p72_device)
-#endif
+#endif // MAME_BUS_CENTRONICS_NEC_P72_H