diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-23 18:45:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-23 18:45:44 +0300 |
commit | 433fb9326ece7b0b84f2f548e43059881cca68b5 (patch) | |
tree | fdfaf85e5e41b2f2c7d1182b68fc985dc436a221 /source/blender/blenkernel | |
parent | 7046e37eded55ac8879835500788a1e734437bbf (diff) |
BLI: add macro to indicate unreachable code
This adds a `BLI_assert_unreachable()` macro, that should be used instead
of `BLI_assert(false)` in many places.
* `BLI_assert_unreachable` provides more information than `BLI_assert(false)`
to people reading the code.
* `BLI_assert_unreachable` will print an error to `stderr` in a release build.
This makes it more likely that we will get bug reports when the assumptions
of a developer were wrong.
Differential Revision: https://developer.blender.org/D10780
Diffstat (limited to 'source/blender/blenkernel')
0 files changed, 0 insertions, 0 deletions