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/plib/ptokenizer.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/plib/ptokenizer.cpp')
-rw-r--r-- | src/lib/netlist/plib/ptokenizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/ptokenizer.cpp b/src/lib/netlist/plib/ptokenizer.cpp index 67fd506dc39..98be18b6419 100644 --- a/src/lib/netlist/plib/ptokenizer.cpp +++ b/src/lib/netlist/plib/ptokenizer.cpp @@ -83,11 +83,11 @@ namespace plib { m_token_queue = nullptr; } - void token_reader_t::require_token(const token_id_t &token_num) { require_token(get_token(), token_num); } + void token_reader_t::require_token(const token_t &tok, const token_id_t &token_num) { if (!tok.is(token_num)) |