diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/python/intern/bpy_intern_string.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/python/intern/bpy_intern_string.c')
-rw-r--r-- | source/blender/python/intern/bpy_intern_string.c | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/source/blender/python/intern/bpy_intern_string.c b/source/blender/python/intern/bpy_intern_string.c index 334aa49c0bf..141f03c22aa 100644 --- a/source/blender/python/intern/bpy_intern_string.c +++ b/source/blender/python/intern/bpy_intern_string.c @@ -49,37 +49,40 @@ PyObject *bpy_intern_str_unregister; void bpy_intern_string_init(void) { - unsigned int i = 0; + unsigned int i = 0; #define BPY_INTERN_STR(var, str) \ - { var = bpy_intern_str_arr[i++] = PyUnicode_FromString(str); } (void)0 + { \ + var = bpy_intern_str_arr[i++] = PyUnicode_FromString(str); \ + } \ + (void)0 - BPY_INTERN_STR(bpy_intern_str___annotations__, "__annotations__"); - BPY_INTERN_STR(bpy_intern_str___doc__, "__doc__"); - BPY_INTERN_STR(bpy_intern_str___main__, "__main__"); - BPY_INTERN_STR(bpy_intern_str___module__, "__module__"); - BPY_INTERN_STR(bpy_intern_str___name__, "__name__"); - BPY_INTERN_STR(bpy_intern_str___slots__, "__slots__"); - BPY_INTERN_STR(bpy_intern_str_attr, "attr"); - BPY_INTERN_STR(bpy_intern_str_bl_property, "bl_property"); - BPY_INTERN_STR(bpy_intern_str_bl_rna, "bl_rna"); - BPY_INTERN_STR(bpy_intern_str_bl_target_properties, "bl_target_properties"); - BPY_INTERN_STR(bpy_intern_str_bpy_types, "bpy.types"); - BPY_INTERN_STR(bpy_intern_str_frame, "frame"); - BPY_INTERN_STR(bpy_intern_str_properties, "properties"); - BPY_INTERN_STR(bpy_intern_str_register, "register"); - BPY_INTERN_STR(bpy_intern_str_self, "self"); - BPY_INTERN_STR(bpy_intern_str_unregister, "unregister"); + BPY_INTERN_STR(bpy_intern_str___annotations__, "__annotations__"); + BPY_INTERN_STR(bpy_intern_str___doc__, "__doc__"); + BPY_INTERN_STR(bpy_intern_str___main__, "__main__"); + BPY_INTERN_STR(bpy_intern_str___module__, "__module__"); + BPY_INTERN_STR(bpy_intern_str___name__, "__name__"); + BPY_INTERN_STR(bpy_intern_str___slots__, "__slots__"); + BPY_INTERN_STR(bpy_intern_str_attr, "attr"); + BPY_INTERN_STR(bpy_intern_str_bl_property, "bl_property"); + BPY_INTERN_STR(bpy_intern_str_bl_rna, "bl_rna"); + BPY_INTERN_STR(bpy_intern_str_bl_target_properties, "bl_target_properties"); + BPY_INTERN_STR(bpy_intern_str_bpy_types, "bpy.types"); + BPY_INTERN_STR(bpy_intern_str_frame, "frame"); + BPY_INTERN_STR(bpy_intern_str_properties, "properties"); + BPY_INTERN_STR(bpy_intern_str_register, "register"); + BPY_INTERN_STR(bpy_intern_str_self, "self"); + BPY_INTERN_STR(bpy_intern_str_unregister, "unregister"); #undef BPY_INTERN_STR - BLI_assert(i == ARRAY_SIZE(bpy_intern_str_arr)); + BLI_assert(i == ARRAY_SIZE(bpy_intern_str_arr)); } void bpy_intern_string_exit(void) { - unsigned int i = ARRAY_SIZE(bpy_intern_str_arr); - while (i--) { - Py_DECREF(bpy_intern_str_arr[i]); - } + unsigned int i = ARRAY_SIZE(bpy_intern_str_arr); + while (i--) { + Py_DECREF(bpy_intern_str_arr[i]); + } } |