Cleanup: use new BLI_assert_unreachable macro

This commit is contained in:
2021-03-24 12:38:08 +11:00
parent 3ea1779365
commit 3f47df577d
28 changed files with 55 additions and 53 deletions

View File

@@ -3984,7 +3984,7 @@ PyObject *BPy_BMElem_CreatePyObject(BMesh *bm, BMHeader *ele)
case BM_LOOP:
return BPy_BMLoop_CreatePyObject(bm, (BMLoop *)ele);
default:
BLI_assert(0);
BLI_assert_unreachable();
PyErr_SetString(PyExc_SystemError, "internal error");
return NULL;
}

View File

@@ -56,7 +56,7 @@ static CustomData *bpy_bm_customdata_get(BMesh *bm, char htype)
return &bm->ldata;
}
BLI_assert(0);
BLI_assert_unreachable();
return NULL;
}
@@ -958,7 +958,7 @@ PyObject *BPy_BMLayerAccess_CreatePyObject(BMesh *bm, const char htype)
type = &BPy_BMLayerAccessLoop_Type;
break;
default: {
BLI_assert(0);
BLI_assert_unreachable();
type = NULL;
break;
}