diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:24:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:24:14 +0300 |
commit | 41d4a1986548e66a652221e4a68c52900474eeff (patch) | |
tree | 26acf937ea0b762977f89adcc4e74a3ec9ecee62 /source/blender/makesrna/intern/makesrna.c | |
parent | 108045faa01849115c54190ebed788faf36dcb56 (diff) |
ClangFormat: format '#if 0' code in source/
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 51 |
1 files changed, 38 insertions, 13 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 30b21e131ed..168df3285b2 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -1382,18 +1382,33 @@ static char *rna_def_property_lookup_int_func(FILE *f, if (dp->dnalengthname || dp->dnalengthfixed) { if (dp->dnalengthname) - fprintf(f, "\n rna_array_lookup_int(ptr, &RNA_%s, data->%s, sizeof(data->%s[0]), data->%s, index);\n", - item_type, dp->dnaname, dp->dnaname, dp->dnalengthname); + fprintf(f, + "\n rna_array_lookup_int(ptr, &RNA_%s, data->%s, sizeof(data->%s[0]), data->%s, " + "index);\n", + item_type, + dp->dnaname, + dp->dnaname, + dp->dnalengthname); else - fprintf(f, "\n rna_array_lookup_int(ptr, &RNA_%s, data->%s, sizeof(data->%s[0]), %d, index);\n", - item_type, dp->dnaname, dp->dnaname, dp->dnalengthfixed); + fprintf( + f, + "\n rna_array_lookup_int(ptr, &RNA_%s, data->%s, sizeof(data->%s[0]), %d, index);\n", + item_type, + dp->dnaname, + dp->dnaname, + dp->dnalengthfixed); } else { if (dp->dnapointerlevel == 0) - fprintf(f, "\n return rna_listbase_lookup_int(ptr, &RNA_%s, &data->%s, index);\n", - item_type, dp->dnaname); + fprintf(f, + "\n return rna_listbase_lookup_int(ptr, &RNA_%s, &data->%s, index);\n", + item_type, + dp->dnaname); else - fprintf(f, "\n return rna_listbase_lookup_int(ptr, &RNA_%s, data->%s, index);\n", item_type, dp->dnaname); + fprintf(f, + "\n return rna_listbase_lookup_int(ptr, &RNA_%s, data->%s, index);\n", + item_type, + dp->dnaname); } #endif @@ -2275,13 +2290,23 @@ static void rna_def_property_funcs_impl_cpp(FILE *f, StructRNA *srna, PropertyDe CollectionPropertyRNA *cprop = (CollectionPropertyRNA *)dp->prop; if (cprop->type) - fprintf(f, "\tCOLLECTION_PROPERTY(%s, %s, %s, %s, %s, %s)", (const char *)cprop->type, srna->identifier, - prop->identifier, (cprop->length ? "true" : "false"), - (cprop->lookupint ? "true" : "false"), (cprop->lookupstring ? "true" : "false")); + fprintf(f, + "\tCOLLECTION_PROPERTY(%s, %s, %s, %s, %s, %s)", + (const char *)cprop->type, + srna->identifier, + prop->identifier, + (cprop->length ? "true" : "false"), + (cprop->lookupint ? "true" : "false"), + (cprop->lookupstring ? "true" : "false")); else - fprintf(f, "\tCOLLECTION_PROPERTY(%s, %s, %s, %s, %s, %s)", "UnknownType", srna->identifier, - prop->identifier, (cprop->length ? "true" : "false"), - (cprop->lookupint ? "true" : "false"), (cprop->lookupstring ? "true" : "false")); + fprintf(f, + "\tCOLLECTION_PROPERTY(%s, %s, %s, %s, %s, %s)", + "UnknownType", + srna->identifier, + prop->identifier, + (cprop->length ? "true" : "false"), + (cprop->lookupint ? "true" : "false"), + (cprop->lookupstring ? "true" : "false")); #endif break; } |