unify include guard defines, __$FILENAME__
without the underscores these clogged up the namespace for autocompleation which was annoying.
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
|
||||
//Include this file for access to vector, quat, matrix, euler, etc...
|
||||
|
||||
#ifndef MATHUTILS_H
|
||||
#define MATHUTILS_H
|
||||
#ifndef __MATHUTILS_H__
|
||||
#define __MATHUTILS_H__
|
||||
|
||||
/* Can cast different mathutils types to this, use for generic funcs */
|
||||
|
||||
@@ -125,4 +125,4 @@ int column_vector_multiplication(float rvec[4], VectorObject *vec, MatrixObject
|
||||
/* dynstr as python string utility funcions */
|
||||
PyObject *mathutils_dynstr_to_py(struct DynStr *ds);
|
||||
|
||||
#endif /* MATHUTILS_H */
|
||||
#endif /* __MATHUTILS_H__ */
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MATHUTILS_COLOR_H
|
||||
#define MATHUTILS_COLOR_H
|
||||
#ifndef __MATHUTILS_COLOR_H__
|
||||
#define __MATHUTILS_COLOR_H__
|
||||
|
||||
extern PyTypeObject color_Type;
|
||||
#define ColorObject_Check(_v) PyObject_TypeCheck((_v), &color_Type)
|
||||
@@ -51,4 +51,4 @@ blender (stored in blend_data). This is an either/or struct not both*/
|
||||
PyObject *Color_CreatePyObject( float *col, int type, PyTypeObject *base_type);
|
||||
PyObject *Color_CreatePyObject_cb(PyObject *cb_user, int cb_type, int cb_subtype);
|
||||
|
||||
#endif /* MATHUTILS_COLOR_H */
|
||||
#endif /* __MATHUTILS_COLOR_H__ */
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MATHUTILS_EULER_H
|
||||
#define MATHUTILS_EULER_H
|
||||
#ifndef __MATHUTILS_EULER_H__
|
||||
#define __MATHUTILS_EULER_H__
|
||||
|
||||
extern PyTypeObject euler_Type;
|
||||
#define EulerObject_Check(_v) PyObject_TypeCheck((_v), &euler_Type)
|
||||
@@ -56,4 +56,4 @@ PyObject *Euler_CreatePyObject_cb(PyObject *cb_user, short order, int cb_type, i
|
||||
short euler_order_from_string(const char *str, const char *error_prefix);
|
||||
|
||||
|
||||
#endif /* MATHUTILS_EULER_H */
|
||||
#endif /* __MATHUTILS_EULER_H__ */
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MATHUTILS_MATRIX_H
|
||||
#define MATHUTILS_MATRIX_H
|
||||
#ifndef __MATHUTILS_MATRIX_H__
|
||||
#define __MATHUTILS_MATRIX_H__
|
||||
|
||||
extern PyTypeObject matrix_Type;
|
||||
extern PyTypeObject matrix_access_Type;
|
||||
@@ -83,4 +83,4 @@ extern struct Mathutils_Callback mathutils_matrix_translation_cb;
|
||||
|
||||
void matrix_as_3x3(float mat[3][3], MatrixObject *self);
|
||||
|
||||
#endif /* MATHUTILS_MATRIX_H */
|
||||
#endif /* __MATHUTILS_MATRIX_H__ */
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MATHUTILS_QUAT_H
|
||||
#define MATHUTILS_QUAT_H
|
||||
#ifndef __MATHUTILS_QUATERNION_H__
|
||||
#define __MATHUTILS_QUATERNION_H__
|
||||
|
||||
extern PyTypeObject quaternion_Type;
|
||||
#define QuaternionObject_Check(_v) PyObject_TypeCheck((_v), &quaternion_Type)
|
||||
@@ -51,4 +51,4 @@ blender (stored in blend_data). This is an either/or struct not both*/
|
||||
PyObject *Quaternion_CreatePyObject( float *quat, int type, PyTypeObject *base_type);
|
||||
PyObject *Quaternion_CreatePyObject_cb(PyObject *cb_user, int cb_type, int cb_subtype);
|
||||
|
||||
#endif /* MATHUTILS_QUAT_H */
|
||||
#endif /* __MATHUTILS_QUATERNION_H__ */
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MATHUTILS_VECTOR_H
|
||||
#define MATHUTILS_VECTOR_H
|
||||
#ifndef __MATHUTILS_VECTOR_H__
|
||||
#define __MATHUTILS_VECTOR_H__
|
||||
|
||||
extern PyTypeObject vector_Type;
|
||||
#define VectorObject_Check(_v) PyObject_TypeCheck((_v), &vector_Type)
|
||||
@@ -49,4 +49,4 @@ PyObject *Vector_CreatePyObject(float *vec, const int size, const int type, PyTy
|
||||
PyObject *Vector_CreatePyObject_cb(PyObject *user, int size, int callback_type, int subtype);
|
||||
PyObject *Vector_CreatePyObject_alloc(float *vec, const int size, PyTypeObject *base_type);
|
||||
|
||||
#endif /* MATHUTILS_VECTOR_H */
|
||||
#endif /* __MATHUTILS_VECTOR_H__ */
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
/*Include this file for access to vector, quat, matrix, euler, etc...*/
|
||||
|
||||
#ifndef MATHUTILS_GEOMETRY_H
|
||||
#define MATHUTILS_GEOMETRY_H
|
||||
#ifndef __MATHUTILS_GEOMETRY_H__
|
||||
#define __MATHUTILS_GEOMETRY_H__
|
||||
|
||||
#include "mathutils.h"
|
||||
|
||||
PyMODINIT_FUNC PyInit_mathutils_geometry(void);
|
||||
|
||||
#endif /* MATHUTILS_GEOMETRY_H */
|
||||
#endif /* __MATHUTILS_GEOMETRY_H__ */
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
* \ingroup mathutils
|
||||
*/
|
||||
|
||||
#ifndef MATHUTILS_NOISE_H
|
||||
#define MATHUTILS_NOISE_H
|
||||
#ifndef __MATHUTILS_NOISE_H__
|
||||
#define __MATHUTILS_NOISE_H__
|
||||
|
||||
#include "mathutils.h"
|
||||
|
||||
@@ -33,4 +33,4 @@ PyMODINIT_FUNC PyInit_mathutils_noise(void);
|
||||
PyMODINIT_FUNC PyInit_mathutils_noise_types(void);
|
||||
PyMODINIT_FUNC PyInit_mathutils_noise_metrics(void);
|
||||
|
||||
#endif // MATHUTILS_NOISE_H
|
||||
#endif // __MATHUTILS_NOISE_H__
|
||||
|
||||
Reference in New Issue
Block a user