diff options
| author | Liam <byteslice@airmail.cc> | 2022-06-07 17:02:29 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-06-13 20:09:00 -0400 |
| commit | c1771c98f3dcdb0216a1d1809a6c75ce13c21eec (patch) | |
| tree | ea48c7b1d22a0b282846ba28a9b62c988e38bd29 /src/audio_core/voice_context.cpp | |
| parent | 063d8354a72c3d2e8711c88b1b94301d1327eab4 (diff) | |
common: Change semantics of UNREACHABLE to unconditionally crash
Diffstat (limited to 'src/audio_core/voice_context.cpp')
| -rw-r--r-- | src/audio_core/voice_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/voice_context.cpp b/src/audio_core/voice_context.cpp index c8e4a6caf5..f58a5c7545 100644 --- a/src/audio_core/voice_context.cpp +++ b/src/audio_core/voice_context.cpp @@ -114,7 +114,7 @@ void ServerVoiceInfo::UpdateParameters(const VoiceInfo::InParams& voice_in, in_params.current_playstate = ServerPlayState::Play; break; default: - UNREACHABLE_MSG("Unknown playstate {}", voice_in.play_state); + ASSERT_MSG(false, "Unknown playstate {}", voice_in.play_state); break; } @@ -410,7 +410,7 @@ bool ServerVoiceInfo::UpdateParametersForCommandGeneration( return in_params.should_depop; } default: - UNREACHABLE_MSG("Invalid playstate {}", in_params.current_playstate); + ASSERT_MSG(false, "Invalid playstate {}", in_params.current_playstate); } return false; |
