diff options
author | 2020-07-28 20:42:44 +0200 | |
---|---|---|
committer | 2020-07-28 20:42:47 +0200 | |
commit | 0cbbbdc846f7efdc47df0639bb1ce72f0e8e79e8 (patch) | |
tree | 713ebc6b405d657dc9ca05c3be34392a3f57d734 /src/lib/netlist/plib/ppreprocessor.cpp | |
parent | 09e987486a38e9e9f94e468b77f4cd7f4aa5259c (diff) |
netlist: source stream refactoring
* This is an infrastructure change to enable better error reporting
including file/source and line numbers in the future
Diffstat (limited to 'src/lib/netlist/plib/ppreprocessor.cpp')
-rw-r--r-- | src/lib/netlist/plib/ppreprocessor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/ppreprocessor.cpp b/src/lib/netlist/plib/ppreprocessor.cpp index d183485789f..7e8c363fbd3 100644 --- a/src/lib/netlist/plib/ppreprocessor.cpp +++ b/src/lib/netlist/plib/ppreprocessor.cpp @@ -560,16 +560,16 @@ namespace plib { // first try local context auto l(plib::util::buildpath({m_stack.back().m_local_path, arg})); auto lstrm(m_sources.get_stream(l)); - if (lstrm) + if (!lstrm.empty()) { - m_stack.emplace_back(input_context(std::move(lstrm), plib::util::path(l), l)); + m_stack.emplace_back(input_context(lstrm.release_stream(), plib::util::path(l), l)); } else { auto strm(m_sources.get_stream(arg)); - if (strm) + if (!strm.empty()) { - m_stack.emplace_back(input_context(std::move(strm), plib::util::path(arg), arg)); + m_stack.emplace_back(input_context(strm.release_stream(), plib::util::path(arg), arg)); } else error("include not found:" + arg); |