set_tag can now take things other than C strings - please don't write new legacy code (nw)

This commit is contained in:
Vas Crabb 2018-05-14 11:16:50 +10:00
parent 62be291842
commit 75f1e7f86d
2 changed files with 4 additions and 4 deletions

View File

@ -36,9 +36,9 @@ public:
// construction/destruction // construction/destruction
huc6261_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); huc6261_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
void set_vdc1_tag(const char *tag) { m_huc6270_a.set_tag(tag); } template <typename T> void set_vdc1_tag(T &&tag) { m_huc6270_a.set_tag(std::forward<T>(tag)); }
void set_vdc2_tag(const char *tag) { m_huc6270_b.set_tag(tag); } template <typename T> void set_vdc2_tag(T &&tag) { m_huc6270_b.set_tag(std::forward<T>(tag)); }
void set_king_tag(const char *tag) { m_huc6272.set_tag(tag); } template <typename T> void set_king_tag(T &&tag) { m_huc6272.set_tag(std::forward<T>(tag)); }
void video_update(bitmap_rgb32 &bitmap, const rectangle &cliprect); void video_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
DECLARE_READ16_MEMBER( read ); DECLARE_READ16_MEMBER( read );

View File

@ -41,7 +41,7 @@ public:
huc6272_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); huc6272_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
template <class Object> devcb_base &set_irq_changed_callback(Object &&cb) { return m_irq_changed_cb.set_callback(std::forward<Object>(cb)); } template <class Object> devcb_base &set_irq_changed_callback(Object &&cb) { return m_irq_changed_cb.set_callback(std::forward<Object>(cb)); }
void set_rainbow_tag(const char *tag) { m_huc6271.set_tag(tag); } template <typename T> void set_rainbow_tag(const char *tag) { m_huc6271.set_tag(std::forward<T>(tag)); }
// I/O operations // I/O operations
DECLARE_WRITE32_MEMBER( write ); DECLARE_WRITE32_MEMBER( write );