sts: add STS_UNREACHABLE_DEFAULT_CASE()

This commit is contained in:
Michael Scire authored and SciresM committed 2019-12-07 12:41:28 -08:00
1 parent 609a302e16
commit add18d868f
23 files changed
+50 -87

No files matched your search

@@ -76,8 +76,7 @@ namespace sts::i2c::driver::impl {
case Command::Receive:
R_TRY(this->bus_accessor->Receive(reinterpret_cast<u8 *>(dst), num_bytes, option, this->addressing_mode, this->slave_address));
break;
default:
std::abort();
STS_UNREACHABLE_DEFAULT_CASE();
}
return ResultSuccess;