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

@@ -201,7 +201,7 @@ static PyObject *pygpu_matrix_stack_context_enter(BPyGPU_MatrixStackContext *sel
self->level = GPU_matrix_stack_level_get_projection();
}
else {
BLI_assert(0);
BLI_assert_unreachable();
}
Py_RETURN_NONE;
}
@@ -234,7 +234,7 @@ static PyObject *pygpu_matrix_stack_context_exit(BPyGPU_MatrixStackContext *self
}
}
else {
BLI_assert(0);
BLI_assert_unreachable();
}
finally:
Py_RETURN_NONE;

View File

@@ -70,7 +70,8 @@
break; \
} \
default: \
BLI_assert(0); \
BLI_assert_unreachable(); \
break; \
} \
((void)0)