diff options
author | 2023-06-12 03:14:42 +1000 | |
---|---|---|
committer | 2023-06-12 03:18:46 +1000 | |
commit | 58fed9839ff65d69a81014fd1134aa92c34d3fc2 (patch) | |
tree | 9fd0e3e77ee91f1be3a145545368ba35438a5b65 /src/devices/sound/ymz280b.cpp | |
parent | 9a69be8fd315faa30caee833213a523f7bf25700 (diff) |
emu/devfind.h: Added a lookup() member function to device finders.
This simplifies looking up the target device during configuration. It
is useful when configuring child devices in things like CPUs with
integrated peripherals.
emu/device.h: Allow templated subdevice() and siblingdevice() to work
with classes that don't derive from device_t (e.g. classes that derive
from device_interface).
util/delegate.h: Added more noexcept. Won't make much difference as
most of the affected member functions are inline anyway.
Diffstat (limited to 'src/devices/sound/ymz280b.cpp')
-rw-r--r-- | src/devices/sound/ymz280b.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/sound/ymz280b.cpp b/src/devices/sound/ymz280b.cpp index ef4e9bf1190..82fd7ed9c77 100644 --- a/src/devices/sound/ymz280b.cpp +++ b/src/devices/sound/ymz280b.cpp @@ -69,14 +69,16 @@ void ymz280b_device::update_irq_state() m_irq_state = 1; if (!m_irq_handler.isnull()) m_irq_handler(1); - else logerror("YMZ280B: IRQ generated, but no callback specified!\n"); + else + logerror("YMZ280B: IRQ generated, but no callback specified!\n"); } else if (!irq_bits && m_irq_state) { m_irq_state = 0; if (!m_irq_handler.isnull()) m_irq_handler(0); - else logerror("YMZ280B: IRQ generated, but no callback specified!\n"); + else + logerror("YMZ280B: IRQ generated, but no callback specified!\n"); } } |