From 8d1afead8177ce8ff37c5b3e71d5b2bb955a0509 Mon Sep 17 00:00:00 2001 From: couriersud Date: Wed, 10 Jun 2020 01:08:27 +0200 Subject: netlist: fix win32 compile (nw) ... and all targets without INT128 support. --- src/devices/machine/netlist.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/devices/machine/netlist.cpp') diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp index 1e290a2d29e..a47d453762d 100644 --- a/src/devices/machine/netlist.cpp +++ b/src/devices/machine/netlist.cpp @@ -791,17 +791,19 @@ void netlist_mame_stream_output_device::set_params(int channel, const char *out_ /// struct save_helper { - save_helper(device_t *dev, pstring prefix) + save_helper(device_t *dev, const pstring &prefix) : m_device(dev), m_prefix(prefix) {} - template - void save_item(T &&item, pstring name) + template + void save_item(T &&item, const pstring &name, X = nullptr) { m_device->save_item(item, (m_prefix + "_" + name).c_str()); } - void save_item(std::enable_if_t &item, pstring name) + template + std::enable_if_t::value, void> + save_item(INT128 &item, const pstring &name, X = nullptr) { auto *p = reinterpret_cast(&item); m_device->save_item(p[0], (m_prefix + "_" + name + "_1").c_str()); -- cgit v1.2.3