mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
ym2151: really remove the macros (nw)
This commit is contained in:
parent
9328733025
commit
d895e2c66c
@ -36,16 +36,6 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// INTERFACE CONFIGURATION MACROS
|
||||
//**************************************************************************
|
||||
|
||||
#define MCFG_YM2151_IRQ_HANDLER(_devcb) \
|
||||
downcast<ym2151_device &>(*device).set_irq_handler(DEVCB_##_devcb);
|
||||
#define MCFG_YM2151_PORT_WRITE_HANDLER(_devcb) \
|
||||
downcast<ym2151_device &>(*device).set_port_write_handler(DEVCB_##_devcb);
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
//**************************************************************************
|
||||
@ -61,8 +51,6 @@ public:
|
||||
ym2151_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_irqhandler.set_callback(std::forward<Object>(cb)); }
|
||||
template <class Object> devcb_base &set_port_write_handler(Object &&cb) { return m_portwritehandler.set_callback(std::forward<Object>(cb)); }
|
||||
auto irq_handler() { return m_irqhandler.bind(); }
|
||||
auto port_write_handler() { return m_portwritehandler.bind(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user