diff options
Diffstat (limited to 'src/devices/cpu/psx/irq.h')
-rw-r--r-- | src/devices/cpu/psx/irq.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/cpu/psx/irq.h b/src/devices/cpu/psx/irq.h index 051c68a089d..11d637921f7 100644 --- a/src/devices/cpu/psx/irq.h +++ b/src/devices/cpu/psx/irq.h @@ -15,16 +15,13 @@ DECLARE_DEVICE_TYPE(PSX_IRQ, psxirq_device) -#define MCFG_PSX_IRQ_HANDLER(_devcb) \ - downcast<psxirq_device &>(*device).set_irq_handler(DEVCB_##_devcb); - class psxirq_device : public device_t { public: psxirq_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // configuration helpers - template <class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irq_handler.set_callback(std::forward<Object>(cb)); } + auto irq() { return m_irq_handler.bind(); } DECLARE_READ32_MEMBER( read ); DECLARE_WRITE32_MEMBER( write ); |