Cleanup: use ELEM macro (>2 args)

This commit is contained in:
2020-11-06 12:51:49 +11:00
parent d89fedf266
commit f11f7ce08e
16 changed files with 71 additions and 55 deletions

View File

@@ -373,7 +373,7 @@ static PyObject *py_blf_shadow(PyObject *UNUSED(self), PyObject *args)
return NULL;
}
if (level != 0 && level != 3 && level != 5) {
if (!ELEM(level, 0, 3, 5)) {
PyErr_SetString(PyExc_TypeError, "blf.shadow expected arg to be in (0, 3, 5)");
return NULL;
}