diff options
| author | 2020-08-22 16:55:37 +0200 | |
|---|---|---|
| committer | 2020-08-22 16:55:37 +0200 | |
| commit | f6049d73b2466c47e33716d0014df9312ccb0067 (patch) | |
| tree | 02b99323616ccb5ebb092a6b923ae720d55c73e3 /src | |
| parent | b0e0ac2b24b74ec70fc2ea9fb8387f77602913a7 (diff) | |
netlist: fix clang build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/netlist/core/core_device.h | 12 | ||||
| -rw-r--r-- | src/lib/netlist/core/device_macros.h | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/netlist/core/core_device.h b/src/lib/netlist/core/core_device.h index db5f922ad13..2e511ce6c9b 100644 --- a/src/lib/netlist/core/core_device.h +++ b/src/lib/netlist/core/core_device.h @@ -66,11 +66,13 @@ namespace netlist }; stats_t * stats() const noexcept { return m_stats.get(); } -#if 0 - virtual void update() noexcept { } -#endif + virtual void reset() { } + void handler_noop() + { + } + protected: virtual void inc_active() noexcept { } @@ -78,10 +80,6 @@ namespace netlist log_type & log(); - void handler_noop() - { - } - public: virtual void timestep(timestep_type ts_type, nl_fptype st) noexcept { plib::unused_var(ts_type, st); } virtual void update_terminals() noexcept { } diff --git a/src/lib/netlist/core/device_macros.h b/src/lib/netlist/core/device_macros.h index 17d70d7d710..6c32613054d 100644 --- a/src/lib/netlist/core/device_macros.h +++ b/src/lib/netlist/core/device_macros.h @@ -152,6 +152,7 @@ class NETLIB_NAME(name) : public delegator_t<base_device_t> void NETLIB_NAME(cname) :: timestep(timestep_type ts_type, nl_fptype step) noexcept #define NETLIB_DELEGATE(name) nldelegate(&this_type :: name, this) + #define NETLIB_DELEGATE_NOOP() nldelegate(&core_device_t::handler_noop, static_cast<core_device_t *>(this)) #define NETLIB_UPDATE_TERMINALSI() virtual void update_terminals() noexcept override |
