diff options
Diffstat (limited to 'src/mame/machine/microdrv.h')
-rw-r--r-- | src/mame/machine/microdrv.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mame/machine/microdrv.h b/src/mame/machine/microdrv.h index 7fa62714adb..2b7202cd321 100644 --- a/src/mame/machine/microdrv.h +++ b/src/mame/machine/microdrv.h @@ -24,14 +24,6 @@ #define MDV_2 "mdv2" -#define MCFG_MICRODRIVE_ADD(_tag) \ - MCFG_DEVICE_ADD(_tag, MICRODRIVE, 0) - -#define MCFG_MICRODRIVE_COMMS_OUT_CALLBACK(_write) \ - downcast<microdrive_image_device &>(*device).set_comms_out_wr_callback(DEVCB_##_write); - - - /*************************************************************************** TYPE DEFINITIONS ***************************************************************************/ @@ -46,7 +38,7 @@ public: microdrive_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~microdrive_image_device(); - template <class Object> devcb_base &set_comms_out_wr_callback(Object &&cb) { return m_write_comms_out.set_callback(std::forward<Object>(cb)); } + auto comms_out_wr_callback() { return m_write_comms_out.bind(); } // image-level overrides virtual image_init_result call_load() override; |