summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/cat702.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/cat702.h')
-rw-r--r--src/mame/machine/cat702.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/machine/cat702.h b/src/mame/machine/cat702.h
index e6c63dea541..550da70f991 100644
--- a/src/mame/machine/cat702.h
+++ b/src/mame/machine/cat702.h
@@ -2,13 +2,13 @@
// copyright-holders:smf
/* CAT702 security chip */
-#pragma once
+#ifndef MAME_MACHINE_CAT702_H
+#define MAME_MACHINE_CAT702_H
-#ifndef __CAT702_H__
-#define __CAT702_H__
+#pragma once
-extern const device_type CAT702;
+DECLARE_DEVICE_TYPE(CAT702, cat702_device)
#define MCFG_CAT702_DATAOUT_HANDLER(_devcb) \
devcb = &cat702_device::set_dataout_handler(*device, DEVCB_##_devcb);
@@ -19,7 +19,7 @@ public:
cat702_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// static configuration helpers
- template<class _Object> static devcb_base &set_dataout_handler(device_t &device, _Object object) { return downcast<cat702_device &>(device).m_dataout_handler.set_callback(object); }
+ template <class Object> static devcb_base &set_dataout_handler(device_t &device, Object &&cb) { return downcast<cat702_device &>(device).m_dataout_handler.set_callback(std::forward<Object>(cb)); }
DECLARE_WRITE_LINE_MEMBER(write_select);
DECLARE_WRITE_LINE_MEMBER(write_datain);
@@ -45,4 +45,4 @@ private:
devcb_write_line m_dataout_handler;
};
-#endif
+#endif // MAME_MACHINE_CAT702_H