diff options
author | 2022-06-10 16:11:21 +0200 | |
---|---|---|
committer | 2022-06-10 16:11:21 +0200 | |
commit | 1f3f5e0d574e256bc106ee4bc9ee701858585ca3 (patch) | |
tree | e471112c27fccd862215cf2c460d5471d546de86 /src/lib/netlist/tests/test_precommit.cpp | |
parent | 63e595ae364a6f9e6b3692af673d1a0c48523f2d (diff) |
netlist: fix bugs and more cpp instead of macros (#9897)
* netlist: fix bugs and more cpp instead of macros
- C-style comments converted to c++
- Fix crash in state saving code when an abort queue processing event
is pending.
- Fix a bug where a net could be twice in the queue.
- Convert more macros to c++
- fixed SUBTARGET=nl build
- fixed potential bugs which would allow a terminal to belong to more
than one net. This is not possible even for a short time.
- moved some member function definitions out-of-class.
- moved code out-of-class
- added constexpr where appropriate
- fixed mamenl build
- Cleanup and indentation
Diffstat (limited to 'src/lib/netlist/tests/test_precommit.cpp')
-rw-r--r-- | src/lib/netlist/tests/test_precommit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/netlist/tests/test_precommit.cpp b/src/lib/netlist/tests/test_precommit.cpp index 7f710dfb668..55f9b596a8c 100644 --- a/src/lib/netlist/tests/test_precommit.cpp +++ b/src/lib/netlist/tests/test_precommit.cpp @@ -18,9 +18,10 @@ PTEST(test_precommit, precommit) PEXPECT_EQ(PPMF_EXPERIMENTAL, 0); PEXPECT_EQ(PPMF_USE_MAME_DELEGATES, 0); - PEXPECT_EQ(NL_USE_COPY_INSTEAD_OF_REFERENCE, 0); + PEXPECT_EQ(netlist::config::use_copy_instead_of_reference::value, false); PEXPECT_EQ(NL_USE_BACKWARD_EULER, 1); PEXPECT_EQ(PUSE_FLOAT128, 0); PEXPECT_EQ(NL_USE_FLOAT128, PUSE_FLOAT128); - PEXPECT_EQ(AVOID_NOOP_QUEUE_PUSHES, 0); + PEXPECT_EQ(NL_USE_INPLACE_CORE_TERMS, 0); + PEXPECT_EQ(netlist::config::avoid_noop_queue_pushes::value, false); } |