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/mathutils/mathutils_Vector.h | |
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/mathutils/mathutils_Vector.h')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Vector.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/source/blender/python/mathutils/mathutils_Vector.h b/source/blender/python/mathutils/mathutils_Vector.h index 7ebc3fbf1d6..f75702bc54c 100644 --- a/source/blender/python/mathutils/mathutils_Vector.h +++ b/source/blender/python/mathutils/mathutils_Vector.h @@ -18,7 +18,6 @@ * \ingroup pymathutils */ - #ifndef __MATHUTILS_VECTOR_H__ #define __MATHUTILS_VECTOR_H__ @@ -28,27 +27,26 @@ extern PyTypeObject vector_Type; #define VectorObject_CheckExact(v) (Py_TYPE(v) == &vector_Type) typedef struct { - BASE_MATH_MEMBERS(vec); + BASE_MATH_MEMBERS(vec); - int size; /* vec size 2 or more */ + int size; /* vec size 2 or more */ } VectorObject; /*prototypes*/ -PyObject *Vector_CreatePyObject( - const float *vec, const int size, - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT; -PyObject *Vector_CreatePyObject_wrap( - float *vec, const int size, - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); -PyObject *Vector_CreatePyObject_cb( - PyObject *user, int size, - unsigned char cb_type, unsigned char subtype - ) ATTR_WARN_UNUSED_RESULT; -PyObject *Vector_CreatePyObject_alloc( - float *vec, const int size, - PyTypeObject *base_type - ) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); - -#endif /* __MATHUTILS_VECTOR_H__ */ +PyObject *Vector_CreatePyObject(const float *vec, + const int size, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT; +PyObject *Vector_CreatePyObject_wrap(float *vec, + const int size, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1); +PyObject *Vector_CreatePyObject_cb(PyObject *user, + int size, + unsigned char cb_type, + unsigned char subtype) ATTR_WARN_UNUSED_RESULT; +PyObject *Vector_CreatePyObject_alloc(float *vec, + const int size, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1); + +#endif /* __MATHUTILS_VECTOR_H__ */ |