Cleanup: Use switch and BLI_assert_unreachable() more.

Replace some `if/else if` chains by proper `switch` statement.

Replace some `BLI_assert(0)` calls by `BLI_assert_unreachable()` ones.
This commit is contained in:
2022-05-17 15:11:13 +02:00
parent ff2d6c2ba8
commit c6e3242e18
10 changed files with 16 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ void _bli_array_wrap(void *arr_v, uint arr_len, size_t arr_stride, int dir)
memcpy(arr, buf, arr_stride);
}
else {
BLI_assert(0);
BLI_assert_unreachable();
}
}