diff options
author | 2018-07-17 04:46:25 +1000 | |
---|---|---|
committer | 2018-07-17 04:46:25 +1000 | |
commit | a28b2b5a197a681d1d5d9bc14d4a292841c5cd8f (patch) | |
tree | e9da04e7723b00f09702452300960547f47a0ba7 /src/devices/machine/mb89374.h | |
parent | 18eb2b394fde13812544d4d4a7743a03e2292636 (diff) |
remove lots of MCFG_ (nw)
Diffstat (limited to 'src/devices/machine/mb89374.h')
-rw-r--r-- | src/devices/machine/mb89374.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/devices/machine/mb89374.h b/src/devices/machine/mb89374.h index 1ee70cfff58..b41a51db24e 100644 --- a/src/devices/machine/mb89374.h +++ b/src/devices/machine/mb89374.h @@ -37,25 +37,6 @@ Data Link Controller #include "osdcore.h" -//************************************************************************** -// DEVICE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_MB89374_IRQ_CB(_devcb) \ - downcast<mb89374_device &>(*device).set_out_irq_callback(DEVCB_##_devcb); - -#define MCFG_MB89374_PO0_CB(_devcb) \ - downcast<mb89374_device &>(*device).set_out_po_callback<0>(DEVCB_##_devcb); - -#define MCFG_MB89374_PO1_CB(_devcb) \ - downcast<mb89374_device &>(*device).set_out_po_callback<1>(DEVCB_##_devcb); - -#define MCFG_MB89374_PO2_CB(_devcb) \ - downcast<mb89374_device &>(*device).set_out_po_callback<2>(DEVCB_##_devcb); - -#define MCFG_MB89374_PO3_CB(_devcb) \ - downcast<mb89374_device &>(*device).set_out_po_callback<3>(DEVCB_##_devcb); - class mb89374_device : public device_t, public device_execute_interface @@ -64,8 +45,8 @@ public: // construction/destruction mb89374_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> devcb_base &set_out_irq_callback(Object &&cb) { return m_out_irq_cb.set_callback(std::forward<Object>(cb)); } - template <unsigned N, class Object> devcb_base &set_out_po_callback(Object &&cb) { return m_out_po_cb[N].set_callback(std::forward<Object>(cb)); } + auto out_irq_callback() { return m_out_irq_cb.bind(); } + template <unsigned N> auto out_po_callback() { return m_out_po_cb[N].bind(); } // read/write handlers DECLARE_READ8_MEMBER( read ); |