summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/netlist.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2024-10-18 00:47:56 +1100
committer Vas Crabb <vas@vastheman.com>2024-10-18 00:47:56 +1100
commit5f4e3730d9dc978730a53e6369312b931c250390 (patch)
tree7423d8cd2adefbf1252d6d6b67ff067d7f7b3784 /src/devices/machine/netlist.h
parent61f3af53d0c9f083656f9b68e172302274866f6b (diff)
emu/ioport.h: Made syntax for configuring callbacks more consistent.
You now use FUNC or NAME to configure port field callbacks, like you would when configuring other kinds of callbacks. This has a number of benefits: * No need to remember different syntax for port field callbacks, and more approachable for new contributors. * May use function templates with multiple arugments using NAME((&...)) syntax without resorting to another layer of macros. * May use non-member functions on the odd chance it's useful. * More natural syntax for referring to member functions.
Diffstat (limited to 'src/devices/machine/netlist.h')
-rw-r--r--src/devices/machine/netlist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/netlist.h b/src/devices/machine/netlist.h
index 5653551c1ca..51f5bdeb09f 100644
--- a/src/devices/machine/netlist.h
+++ b/src/devices/machine/netlist.h
@@ -37,13 +37,13 @@ namespace netlist {
// MAME specific configuration
#define NETLIST_LOGIC_PORT_CHANGED(_base, _tag) \
- PORT_CHANGED_MEMBER(_base ":" _tag, netlist_mame_logic_input_device, input_changed, 0)
+ PORT_CHANGED_MEMBER(_base ":" _tag, FUNC(netlist_mame_logic_input_device::input_changed), 0)
#define NETLIST_INT_PORT_CHANGED(_base, _tag) \
- PORT_CHANGED_MEMBER(_base ":" _tag, netlist_mame_logic_input_device, input_changed, 0)
+ PORT_CHANGED_MEMBER(_base ":" _tag, FUNC(netlist_mame_logic_input_device::input_changed), 0)
#define NETLIST_ANALOG_PORT_CHANGED(_base, _tag) \
- PORT_CHANGED_MEMBER(_base ":" _tag, netlist_mame_analog_input_device, input_changed, 0)
+ PORT_CHANGED_MEMBER(_base ":" _tag, FUNC(netlist_mame_analog_input_device::input_changed), 0)
/* This macro can only be called from device member */