From 1f3f5e0d574e256bc106ee4bc9ee701858585ca3 Mon Sep 17 00:00:00 2001 From: couriersud Date: Fri, 10 Jun 2022 16:11:21 +0200 Subject: 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 --- src/lib/netlist/tests/test_precommit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/netlist/tests/test_precommit.cpp') 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); } -- cgit v1.2.3