diff options
author | 2020-09-13 09:29:07 +0200 | |
---|---|---|
committer | 2020-09-13 09:29:07 +0200 | |
commit | 0f1de1357c49fa7221439b8769631915691a398a (patch) | |
tree | 328cb4048557f603ea75b7caa99f74deff52f1f6 /src/lib/netlist/nl_setup.cpp | |
parent | 55954e8c72df29c47d5080676cb55311d091535c (diff) |
netlist: move more models into the core.
Diffstat (limited to 'src/lib/netlist/nl_setup.cpp')
-rw-r--r-- | src/lib/netlist/nl_setup.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp index b2ade9d48ce..fcea082a036 100644 --- a/src/lib/netlist/nl_setup.cpp +++ b/src/lib/netlist/nl_setup.cpp @@ -1282,7 +1282,10 @@ void models_t::model_parse(const pstring &model_in, map_t &map) key = plib::ucase(model); auto i = m_models.find(key); if (i == m_models.end()) - throw nl_exception(MF_MODEL_NOT_FOUND("xx" + model)); + { + throw nl_exception(MF_MODEL_NOT_FOUND(pstring("xx") + model)); + } + model = i->second; } pstring xmodel = plib::left(model, pos); |