summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/2203intf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/2203intf.h')
-rw-r--r--src/devices/sound/2203intf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/sound/2203intf.h b/src/devices/sound/2203intf.h
index 345129c98f7..5020702707b 100644
--- a/src/devices/sound/2203intf.h
+++ b/src/devices/sound/2203intf.h
@@ -12,7 +12,7 @@ struct ssg_callbacks;
#define MCFG_YM2203_IRQ_HANDLER(cb) \
- devcb = &downcast<ym2203_device &>(*device).set_irq_handler((DEVCB_##cb));
+ downcast<ym2203_device &>(*device).set_irq_handler((DEVCB_##cb));
class ym2203_device : public ay8910_device
{
@@ -21,6 +21,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 );