Cleanup: use parenthesis for if statements in macros

This commit is contained in:
2020-09-19 16:01:32 +10:00
parent 17a2820da8
commit 14b2a35c8b
28 changed files with 210 additions and 108 deletions

View File

@@ -1986,8 +1986,9 @@ static void bpy_prop_callback_assign_enum(struct PropertyRNA *prop,
} \
srna = srna_from_self(self, #_func "(...):"); \
if (srna == NULL) { \
if (PyErr_Occurred()) \
if (PyErr_Occurred()) { \
return NULL; \
} \
return bpy_prop_deferred_return(pymeth_##_func, kw); \
} \
(void)0