mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-27 06:35:04 +00:00
Switch to an alternative form of avoiding unused goto warnings.
This commit is contained in:
parent
1e149d0add
commit
58b04cdfa4
@ -224,7 +224,9 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
||||
#define MoveToStateDynamic(x) { state_ = x; continue; }
|
||||
|
||||
// Sets the start position for state x.
|
||||
#define BeginState(x) case ExecutionState::x: [[maybe_unused]] x
|
||||
// The `if constexpr` is a slightly-silly way of eliminating a Clang warning about
|
||||
// unused goto targets.
|
||||
#define BeginState(x) case ExecutionState::x: if constexpr (false) goto x; x
|
||||
|
||||
// Sets the start position for the addressing mode y within state x,
|
||||
// where x was declared as an AddressingDispatch.
|
||||
|
Loading…
x
Reference in New Issue
Block a user