diff options
Diffstat (limited to 'src/devices/bus/kc/ram.h')
-rw-r--r-- | src/devices/bus/kc/ram.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/devices/bus/kc/ram.h b/src/devices/bus/kc/ram.h index 97e735e64d2..823d32bdb31 100644 --- a/src/devices/bus/kc/ram.h +++ b/src/devices/bus/kc/ram.h @@ -1,9 +1,9 @@ // license:BSD-3-Clause // copyright-holders:Sandro Ronco -#pragma once +#ifndef MAME_BUS_KC_RAM_H +#define MAME_BUS_KC_RAM_H -#ifndef __KC_RAM_H__ -#define __KC_RAM_H__ +#pragma once #include "kc.h" @@ -20,9 +20,10 @@ class kc_m011_device : public: // construction/destruction kc_m011_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - kc_m011_device(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); protected: + kc_m011_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; virtual void device_reset() override; @@ -169,11 +170,11 @@ private: }; // device type definition -extern const device_type KC_M011; -extern const device_type KC_M022; -extern const device_type KC_M032; -extern const device_type KC_M034; -extern const device_type KC_M035; -extern const device_type KC_M036; - -#endif /* __KC_RAM_H__ */ +DECLARE_DEVICE_TYPE(KC_M011, kc_m011_device) +DECLARE_DEVICE_TYPE(KC_M022, kc_m022_device) +DECLARE_DEVICE_TYPE(KC_M032, kc_m032_device) +DECLARE_DEVICE_TYPE(KC_M034, kc_m034_device) +DECLARE_DEVICE_TYPE(KC_M035, kc_m035_device) +DECLARE_DEVICE_TYPE(KC_M036, kc_m036_device) + +#endif // MAME_BUS_KC_RAM_H |