summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/netlist.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-17 19:35:11 +0200
committer couriersud <couriersud@gmx.org>2020-05-17 19:52:24 +0200
commita94de94c734dcba5648f223c9f0c5f07d4f0ce96 (patch)
treebafc20928d56dc7e00f02aef2d544b0701b71f1a /src/devices/machine/netlist.cpp
parent22fb995337f7f1d666f411c15873c7fe858e022f (diff)
netlist: improve typesafety for source locations. (nw)
During object creation netlist tracks the source files which provide object creation. This is later used e.g. by nltool to create documentation from source.
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r--src/devices/machine/netlist.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index d39bb899d67..1e2ff3b12ba 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -1332,7 +1332,7 @@ void netlist_mame_cpu_device::device_start()
void netlist_mame_cpu_device::nl_register_devices(netlist::nlparse_t &parser) const
{
- parser.factory().add<nld_analog_callback>( "NETDEV_CALLBACK", "-", __FILE__);
+ parser.factory().add<nld_analog_callback>( "NETDEV_CALLBACK", "-", std::move(PSOURCELOC()));
}
uint64_t netlist_mame_cpu_device::execute_clocks_to_cycles(uint64_t clocks) const noexcept
@@ -1485,8 +1485,8 @@ void netlist_mame_sound_device::device_start()
void netlist_mame_sound_device::nl_register_devices(netlist::nlparse_t &parser) const
{
- parser.factory().add<nld_sound_out>("NETDEV_SOUND_OUT", "+CHAN", __FILE__);
- parser.factory().add<nld_sound_in>("NETDEV_SOUND_IN", "-", __FILE__);
+ parser.factory().add<nld_sound_out>("NETDEV_SOUND_OUT", "+CHAN", std::move(PSOURCELOC()));
+ parser.factory().add<nld_sound_in>("NETDEV_SOUND_IN", "-", std::move(PSOURCELOC()));
}
void netlist_mame_sound_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)