Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-03-20 21:56:19 +0300
committerJacques Lucke <jacques@blender.org>2021-03-20 21:56:19 +0300
commit11494e9472db54c0dc078c9d97fe9c53b763641b (patch)
tree58cfa5bc25a2faaf3284cbd5096d78a0478b55a4 /source/blender/blenlib/BLI_listbase_wrapper.hh
parent90959c23728fe569d16ce0a962e841e5accd9e51 (diff)
BLI: add macro to indicate unreachable codetemp-unreachable-abort
Diffstat (limited to 'source/blender/blenlib/BLI_listbase_wrapper.hh')
-rw-r--r--source/blender/blenlib/BLI_listbase_wrapper.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_listbase_wrapper.hh b/source/blender/blenlib/BLI_listbase_wrapper.hh
index ed2a2b5e5ec..6313075db9c 100644
--- a/source/blender/blenlib/BLI_listbase_wrapper.hh
+++ b/source/blender/blenlib/BLI_listbase_wrapper.hh
@@ -26,6 +26,7 @@
*/
#include "BLI_listbase.h"
+#include "BLI_unreachable.h"
#include "DNA_listBase.h"
namespace blender {
@@ -105,8 +106,7 @@ template<typename T> class ListBaseWrapper {
}
index++;
}
- BLI_assert(false);
- return -1;
+ BLI_UNREACHABLE_ABORT;
}
};