diff options
Diffstat (limited to 'src/devices/cpu/i8089/i8089_channel.h')
-rw-r--r-- | src/devices/cpu/i8089/i8089_channel.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/cpu/i8089/i8089_channel.h b/src/devices/cpu/i8089/i8089_channel.h index 914ed70bfbe..fc0e6064efe 100644 --- a/src/devices/cpu/i8089/i8089_channel.h +++ b/src/devices/cpu/i8089/i8089_channel.h @@ -8,10 +8,10 @@ ***************************************************************************/ -#pragma once +#ifndef MAME_CPU_I8080_I8089_CHANNEL_H +#define MAME_CPU_I8080_I8089_CHANNEL_H -#ifndef __I8089_CHANNEL_H__ -#define __I8089_CHANNEL_H__ +#pragma once #include "i8089.h" @@ -24,7 +24,7 @@ MCFG_DEVICE_ADD(_tag, I8089_CHANNEL, 0) #define MCFG_I8089_CHANNEL_SINTR(_sintr) \ - downcast<i8089_channel *>(device)->set_sintr_callback(DEVCB_##_sintr); + downcast<i8089_channel_device *>(device)->set_sintr_callback(DEVCB_##_sintr); //************************************************************************** @@ -34,13 +34,13 @@ // forward declaration class i8089_device; -class i8089_channel : public device_t +class i8089_channel_device : public device_t { public: // construction/destruction - i8089_channel(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + i8089_channel_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template<class _sintr> void set_sintr_callback(_sintr sintr) { m_write_sintr.set_callback(sintr); } + template <class Object> void set_sintr_callback(Object &&sintr) { m_write_sintr.set_callback(std::forward<Object>(sintr)); } // set register void set_reg(int reg, uint32_t value, int tag = -1); @@ -217,7 +217,7 @@ private: // device type definition -extern const device_type I8089_CHANNEL; +DECLARE_DEVICE_TYPE(I8089_CHANNEL, i8089_channel_device) -#endif /* __I8089_CHANNEL_H__ */ +#endif // MAME_CPU_I8080_I8089_CHANNEL_H |