summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/7474.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/7474.h')
-rw-r--r--src/devices/machine/7474.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/machine/7474.h b/src/devices/machine/7474.h
index 2d4cab1a9df..0a6a678ddfb 100644
--- a/src/devices/machine/7474.h
+++ b/src/devices/machine/7474.h
@@ -52,10 +52,10 @@
//**************************************************************************
#define MCFG_7474_OUTPUT_CB(_devcb) \
- devcb = &downcast<ttl7474_device &>(*device).set_output_cb(DEVCB_##_devcb);
+ downcast<ttl7474_device &>(*device).set_output_cb(DEVCB_##_devcb);
#define MCFG_7474_COMP_OUTPUT_CB(_devcb) \
- devcb = &downcast<ttl7474_device &>(*device).set_comp_output_cb(DEVCB_##_devcb);
+ downcast<ttl7474_device &>(*device).set_comp_output_cb(DEVCB_##_devcb);
//**************************************************************************
@@ -73,6 +73,8 @@ public:
// static configuration helpers
template <class Object> devcb_base &set_output_cb(Object &&cb) { return m_output_func.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_comp_output_cb(Object &&cb) { return m_comp_output_func.set_callback(std::forward<Object>(cb)); }
+ auto output_cb() { return m_output_func.bind(); }
+ auto comp_output_cb() { return m_comp_output_func.bind(); }
// public interfaces
DECLARE_WRITE_LINE_MEMBER( clear_w );