ClangFormat: format '#if 0' code in source/

This commit is contained in:
2019-04-17 08:24:14 +02:00
parent 108045faa0
commit 41d4a19865
204 changed files with 1875 additions and 1199 deletions

View File

@@ -283,8 +283,12 @@ static int validate_array_length(PyObject *rvalue,
/* BLI_snprintf(error_str, error_str_size,
* "%s.%s: array length cannot be changed to %d",
* RNA_struct_identifier(ptr->type), RNA_property_identifier(prop), tot); */
PyErr_Format(PyExc_ValueError, "%s %s.%s: array length cannot be changed to %d",
error_prefix, RNA_struct_identifier(ptr->type), RNA_property_identifier(prop), tot);
PyErr_Format(PyExc_ValueError,
"%s %s.%s: array length cannot be changed to %d",
error_prefix,
RNA_struct_identifier(ptr->type),
RNA_property_identifier(prop),
tot);
return -1;
}
#else
@@ -883,7 +887,10 @@ PyObject *pyrna_array_index(PointerRNA *ptr, PropertyRNA *prop, int index)
#if 0
/* XXX this is not used (and never will?) */
/* Given an array property, creates an N-dimensional tuple of values. */
static PyObject *pyrna_py_from_array_internal(PointerRNA *ptr, PropertyRNA *prop, int dim, int *index)
static PyObject *pyrna_py_from_array_internal(PointerRNA *ptr,
PropertyRNA *prop,
int dim,
int *index)
{
PyObject *tuple;
int i, len;