summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/am9519.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/am9519.h')
-rw-r--r--src/devices/machine/am9519.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/devices/machine/am9519.h b/src/devices/machine/am9519.h
index cae08467b40..ddd4925696b 100644
--- a/src/devices/machine/am9519.h
+++ b/src/devices/machine/am9519.h
@@ -27,21 +27,14 @@
#ifndef MAME_MACHINE_AM9519_H
#define MAME_MACHINE_AM9519_H
-
-/***************************************************************************
- DEVICE CONFIGURATION MACROS
-***************************************************************************/
-
-#define MCFG_AM9519_OUT_INT_CB(_devcb) \
- downcast<am9519_device &>(*device).static_set_out_int_callback(DEVCB_##_devcb);
-
+#pragma once
class am9519_device : public device_t
{
public:
am9519_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
- template <class Object> devcb_base &static_set_out_int_callback(Object &&cb) { return m_out_int_func.set_callback(std::forward<Object>(cb)); }
+ auto out_int_callback() { return m_out_int_func.bind(); }
DECLARE_READ8_MEMBER( stat_r );
DECLARE_READ8_MEMBER( data_r );