diff options
Diffstat (limited to 'src/devices/sound/ymz280b.h')
-rw-r--r-- | src/devices/sound/ymz280b.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/sound/ymz280b.h b/src/devices/sound/ymz280b.h index 40b65e94c3c..df52c60206b 100644 --- a/src/devices/sound/ymz280b.h +++ b/src/devices/sound/ymz280b.h @@ -16,7 +16,7 @@ #define YMZ280B_MAKE_WAVS 0 #define MCFG_YMZ280B_IRQ_HANDLER(_devcb) \ - devcb = &downcast<ymz280b_device &>(*device).set_irq_handler(DEVCB_##_devcb); + downcast<ymz280b_device &>(*device).set_irq_handler(DEVCB_##_devcb); class ymz280b_device : public device_t, public device_sound_interface, public device_rom_interface { @@ -25,6 +25,7 @@ public: // configuration helpers template <class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irq_handler.set_callback(std::forward<Object>(cb)); } + auto irq_handler() { return m_irq_handler.bind(); } DECLARE_READ8_MEMBER( read ); DECLARE_WRITE8_MEMBER( write ); |