summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/mb_vcu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/mb_vcu.h')
-rw-r--r--src/devices/video/mb_vcu.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/devices/video/mb_vcu.h b/src/devices/video/mb_vcu.h
index a8b53637a7d..90f0eea422a 100644
--- a/src/devices/video/mb_vcu.h
+++ b/src/devices/video/mb_vcu.h
@@ -23,8 +23,8 @@ public:
mb_vcu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// configuration
- void set_palette_tag(const char *tag) { m_palette.set_tag(tag); }
- void set_cpu_tag(const char *tag) { m_cpu.set_tag(tag); }
+ template <typename T> void set_palette_tag(T &&tag) { m_palette.set_tag(std::forward<T>(tag)); }
+ template <typename T> void set_cpu_tag(T &&tag) { m_cpu.set_tag(std::forward<T>(tag)); }
// I/O operations
DECLARE_WRITE8_MEMBER( write_vregs );
@@ -86,15 +86,4 @@ private:
// device type definition
DECLARE_DEVICE_TYPE(MB_VCU, mb_vcu_device)
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_MB_VCU_CPU(_tag) \
- downcast<mb_vcu_device &>(*device).set_cpu_tag(_tag);
-
-#define MCFG_MB_VCU_PALETTE(_palette_tag) \
- downcast<mb_vcu_device &>(*device).set_palette_tag(_palette_tag);
-
#endif // MAME_VIDEO_MB_VCU_H