diff options
Diffstat (limited to 'src/mame/video/gic.h')
-rw-r--r-- | src/mame/video/gic.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mame/video/gic.h b/src/mame/video/gic.h index edc4ece60dc..0f0f1553e5c 100644 --- a/src/mame/video/gic.h +++ b/src/mame/video/gic.h @@ -19,16 +19,6 @@ #include "emupal.h" - -/*************************************************************************** - DEVICE CONFIGURATION MACROS -***************************************************************************/ - -#define MCFG_GIC_ADD(tag, clock, screen_tag, ram_cb) \ - MCFG_DEVICE_ADD(tag, GIC, clock) \ - MCFG_VIDEO_SET_SCREEN(screen_tag) \ - downcast<gic_device &>(*device).set_ram(DEVCB_##ram_cb); - /*************************************************************************** TYPE DEFINITIONS ***************************************************************************/ @@ -59,7 +49,7 @@ public: gic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // configuration helpers - template <typename Obj> void set_ram(Obj &&cb) { m_ram.set_callback(std::forward<Obj>(cb)); } + auto ram_callback() { return m_ram.bind(); } DECLARE_PALETTE_INIT(gic); |