mirror of
https://github.com/holub/mame
synced 2025-05-02 12:36:41 +03:00
netlist: fix VS build.
This commit is contained in:
parent
a64784a7db
commit
7066028be1
6
src/lib/netlist/plib/pchrono.h
Normal file → Executable file
6
src/lib/netlist/plib/pchrono.h
Normal file → Executable file
@ -194,8 +194,8 @@ namespace plib {
|
|||||||
struct guard_t
|
struct guard_t
|
||||||
{
|
{
|
||||||
guard_t() = delete;
|
guard_t() = delete;
|
||||||
explicit constexpr guard_t(timer &m) noexcept : m_m(m) { m_m.m_time -= T::start(); }
|
explicit constexpr guard_t(timer &m) noexcept : m_m(&m) { m_m->m_time -= T::start(); }
|
||||||
~guard_t() noexcept { m_m.m_time += T::stop(); ++m_m.m_count; }
|
~guard_t() noexcept { m_m->m_time += T::stop(); ++m_m->m_count; }
|
||||||
|
|
||||||
constexpr guard_t(const guard_t &) = default;
|
constexpr guard_t(const guard_t &) = default;
|
||||||
constexpr guard_t &operator=(const guard_t &) = default;
|
constexpr guard_t &operator=(const guard_t &) = default;
|
||||||
@ -203,7 +203,7 @@ namespace plib {
|
|||||||
constexpr guard_t &operator=(guard_t &&) noexcept = default;
|
constexpr guard_t &operator=(guard_t &&) noexcept = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
timer &m_m;
|
timer *m_m;
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr timer() : m_time(0), m_count(0) { }
|
constexpr timer() : m_time(0), m_count(0) { }
|
||||||
|
@ -362,7 +362,7 @@ namespace devices
|
|||||||
auto &pt = dynamic_cast<terminal_t &>(*term);
|
auto &pt = dynamic_cast<terminal_t &>(*term);
|
||||||
// check the connected terminal
|
// check the connected terminal
|
||||||
const auto *const connected_terminals = nlstate.setup().get_connected_terminals(pt);
|
const auto *const connected_terminals = nlstate.setup().get_connected_terminals(pt);
|
||||||
for (const auto *ct = connected_terminals->begin(); *ct != nullptr; ct++)
|
for (auto ct = connected_terminals->begin(); *ct != nullptr; ct++)
|
||||||
{
|
{
|
||||||
analog_net_t &connected_net = (*ct)->net();
|
analog_net_t &connected_net = (*ct)->net();
|
||||||
nlstate.log().verbose(" Connected net {}", connected_net.name());
|
nlstate.log().verbose(" Connected net {}", connected_net.name());
|
||||||
|
Loading…
Reference in New Issue
Block a user