sts: add STS_UNREACHABLE_DEFAULT_CASE()
This commit is contained in:
@@ -144,14 +144,9 @@ namespace sts::boot2 {
|
||||
|
||||
switch (pm::shell::LaunchTitle(&process_id, loc, launch_flags)) {
|
||||
case ResultKernelResourceExhausted:
|
||||
/* Out of resource! */
|
||||
std::abort();
|
||||
case ResultKernelOutOfMemory:
|
||||
/* Out of memory! */
|
||||
std::abort();
|
||||
case ResultKernelLimitReached:
|
||||
/* Limit Reached! */
|
||||
std::abort();
|
||||
STS_ASSERT(false);
|
||||
default:
|
||||
/* We don't care about other issues. */
|
||||
break;
|
||||
|
||||
@@ -134,8 +134,7 @@ namespace sts::pm::impl {
|
||||
return static_cast<u32>(ProcessEventDeprecated::DebugRunning);
|
||||
case ProcessEvent::DebugSuspended:
|
||||
return static_cast<u32>(ProcessEventDeprecated::DebugSuspended);
|
||||
default:
|
||||
std::abort();
|
||||
STS_UNREACHABLE_DEFAULT_CASE();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user