summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_setup.cpp
diff options
context:
space:
mode:
author Couriersud <couriersud@gmx.org>2019-04-28 20:42:59 +0200
committer Couriersud <couriersud@gmx.org>2019-04-28 20:42:59 +0200
commit9694ec54c90b4b73f53f9b94a1080bdaedc8406e (patch)
tree80ad6262d186a4f4c9f3e78b08cbf9cd91d34ec8 /src/lib/netlist/nl_setup.cpp
parent339de811ec4f336dfd0d02f58d5056e5f8de7336 (diff)
netlist: code maintenance
- converted NL_MAX_LINK_RESOLVE_LOOPS into a netlist parameter. - Reduced potential bit-rot. - nltool -v --version now displays values of all compile time defines. There are still far too many compile time defines. However, most of them ensure and test future scalability.
Diffstat (limited to 'src/lib/netlist/nl_setup.cpp')
-rw-r--r--src/lib/netlist/nl_setup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp
index 42efe0cf37c..8162e769a54 100644
--- a/src/lib/netlist/nl_setup.cpp
+++ b/src/lib/netlist/nl_setup.cpp
@@ -744,7 +744,7 @@ void setup_t::resolve_inputs()
* We therefore first park connecting inputs and retry
* after all other terminals were connected.
*/
- int tries = NL_MAX_LINK_RESOLVE_LOOPS;
+ unsigned tries = m_netlist_params->m_max_link_loops();
while (m_links.size() > 0 && tries > 0)
{
@@ -768,7 +768,7 @@ void setup_t::resolve_inputs()
for (auto & link : m_links)
log().warning(MF_CONNECTING_1_TO_2(setup().de_alias(link.first), setup().de_alias(link.second)));
- log().fatal(MF_LINK_TRIES_EXCEEDED(NL_MAX_LINK_RESOLVE_LOOPS));
+ log().fatal(MF_LINK_TRIES_EXCEEDED(m_netlist_params->m_max_link_loops()));
}
log().verbose("deleting empty nets ...");