Cleanup: Use `BLI_assert_unreachable()` as example in comment of `_BLI_assert_abort`.

Using `BLI_assert(0)` should typically be avoided now that we have
`BLI_assert_unreachable`...
This commit is contained in:
Bastien Montagne 2022-05-17 15:25:03 +02:00
parent fb2ae6b8c5
commit 7a31229011
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ void _BLI_assert_abort(void)
/* Wrap to remove 'noreturn' attribute since this suppresses missing return statements,
* allowing changes to debug builds to accidentally to break release builds.
*
* For example `BLI_assert(0);` at the end of a function that returns a value,
* For example `BLI_assert_unreachable();` at the end of a function that returns a value,
* will hide that it's missing a return. */
abort();