diff options
author | 2019-11-15 21:55:41 +0100 | |
---|---|---|
committer | 2019-11-15 22:16:37 +0100 | |
commit | bcfa9eae6f16c35254a5cee1fb992f988c0a86ce (patch) | |
tree | 8b42ff7a46d9be7b73e2c5b7170afe7c27d15180 /src/lib/netlist/plib/pchrono.h | |
parent | df143446696cee294a6ffd7ea6bc0b09a43d9c02 (diff) |
netlist: maintenance and bug fixes, remove DUMMY_INPUT. [Couriersud]
- Removed DUMMY_INPUT. NC (not connected) pins should now use NC_PIN.
If a NC_PIN is actually connected, an error will be logged and
validation will fail.
- Enabled "extended" validation. This will catch now if power terminals
are not connected.
- Added const and noexcept where appropriate.
- Removed dead code.
- Fixed the 7414 Schmitt-Trigger device to use nld_power_pins
Diffstat (limited to 'src/lib/netlist/plib/pchrono.h')
-rw-r--r-- | src/lib/netlist/plib/pchrono.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/pchrono.h b/src/lib/netlist/plib/pchrono.h index 640921e15d8..08738f98a9d 100644 --- a/src/lib/netlist/plib/pchrono.h +++ b/src/lib/netlist/plib/pchrono.h @@ -194,7 +194,7 @@ namespace plib { { guard_t() = delete; explicit guard_t(timer &m) noexcept : m_m(m) { m_m.m_time -= T::start(); } - ~guard_t() { m_m.m_time += T::stop(); ++m_m.m_count; } + ~guard_t() noexcept { m_m.m_time += T::stop(); ++m_m.m_count; } COPYASSIGNMOVE(guard_t, default) @@ -208,7 +208,7 @@ namespace plib { type operator()() const { return m_time; } - void reset() { m_time = 0; m_count = 0; } + void reset() noexcept { m_time = 0; m_count = 0; } type average() const noexcept { return (m_count == 0) ? 0 : m_time / m_count; } type total() const noexcept { return m_time; } ctype count() const noexcept { return m_count; } @@ -237,7 +237,7 @@ namespace plib { // unused local variable. // NOLINTNEXTLINE(modernize-use-equals-default) - ~guard_t() { } + ~guard_t() noexcept { } }; constexpr type operator()() const noexcept { return 0; } |