Code Style: use "#pragma once" in source directory
This replaces header include guards with `#pragma once`. A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`), because they are used in other places. This patch has been generated by P1561 followed by `make format`. Differential Revision: https://developer.blender.org/D8466
This commit is contained in:
@@ -21,9 +21,6 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_API_H__
|
||||
#define __BMESH_PY_API_H__
|
||||
#pragma once
|
||||
|
||||
PyObject *BPyInit_bmesh(void);
|
||||
|
||||
#endif /* __BMESH_PY_API_H__ */
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_GEOMETRY_H__
|
||||
#define __BMESH_PY_GEOMETRY_H__
|
||||
#pragma once
|
||||
|
||||
PyObject *BPyInit_bmesh_geometry(void);
|
||||
|
||||
#endif /* __BMESH_PY_GEOMETRY_H__ */
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_OPS_H__
|
||||
#define __BMESH_PY_OPS_H__
|
||||
#pragma once
|
||||
|
||||
PyObject *BPyInit_bmesh_ops(void);
|
||||
|
||||
#endif /* __BMESH_PY_OPS_H__ */
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_OPS_CALL_H__
|
||||
#define __BMESH_PY_OPS_CALL_H__
|
||||
#pragma once
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD /* required python macro */
|
||||
@@ -30,5 +29,3 @@ typedef struct {
|
||||
} BPy_BMeshOpFunc;
|
||||
|
||||
PyObject *BPy_BMO_call(BPy_BMeshOpFunc *self, PyObject *args, PyObject *kw);
|
||||
|
||||
#endif /* __BMESH_PY_OPS_CALL_H__ */
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_TYPES_H__
|
||||
#define __BMESH_PY_TYPES_H__
|
||||
#pragma once
|
||||
|
||||
extern PyTypeObject BPy_BMesh_Type;
|
||||
extern PyTypeObject BPy_BMVert_Type;
|
||||
@@ -228,5 +227,3 @@ extern struct PyC_FlagSet bpy_bm_htype_vert_edge_face_flags[];
|
||||
extern struct PyC_FlagSet bpy_bm_htype_all_flags[];
|
||||
extern struct PyC_FlagSet bpy_bm_hflag_all_flags[];
|
||||
#endif
|
||||
|
||||
#endif /* __BMESH_PY_TYPES_H__ */
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_TYPES_CUSTOMDATA_H__
|
||||
#define __BMESH_PY_TYPES_CUSTOMDATA_H__
|
||||
#pragma once
|
||||
|
||||
/* all use BPy_BMLayerAccess struct */
|
||||
extern PyTypeObject BPy_BMLayerAccessVert_Type;
|
||||
@@ -67,5 +66,3 @@ void BPy_BM_init_types_customdata(void);
|
||||
/* __getitem__ / __setitem__ */
|
||||
PyObject *BPy_BMLayerItem_GetItem(BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer);
|
||||
int BPy_BMLayerItem_SetItem(BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer, PyObject *value);
|
||||
|
||||
#endif /* __BMESH_PY_TYPES_CUSTOMDATA_H__ */
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_TYPES_MESHDATA_H__
|
||||
#define __BMESH_PY_TYPES_MESHDATA_H__
|
||||
#pragma once
|
||||
|
||||
extern PyTypeObject BPy_BMLoopUV_Type;
|
||||
extern PyTypeObject BPy_BMDeformVert_Type;
|
||||
@@ -51,5 +50,3 @@ int BPy_BMDeformVert_AssignPyObject(struct MDeformVert *dvert, PyObject *value);
|
||||
PyObject *BPy_BMDeformVert_CreatePyObject(struct MDeformVert *dvert);
|
||||
|
||||
void BPy_BM_init_types_meshdata(void);
|
||||
|
||||
#endif /* __BMESH_PY_TYPES_MESHDATA_H__ */
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_TYPES_SELECT_H__
|
||||
#define __BMESH_PY_TYPES_SELECT_H__
|
||||
#pragma once
|
||||
|
||||
struct BPy_BMesh;
|
||||
|
||||
@@ -46,5 +45,3 @@ void BPy_BM_init_types_select(void);
|
||||
PyObject *BPy_BMEditSel_CreatePyObject(BMesh *bm);
|
||||
PyObject *BPy_BMEditSelIter_CreatePyObject(BMesh *bm);
|
||||
int BPy_BMEditSel_Assign(struct BPy_BMesh *self, PyObject *value);
|
||||
|
||||
#endif /* __BMESH_PY_SELECT_H__ */
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
* \ingroup pybmesh
|
||||
*/
|
||||
|
||||
#ifndef __BMESH_PY_UTILS_H__
|
||||
#define __BMESH_PY_UTILS_H__
|
||||
#pragma once
|
||||
|
||||
PyObject *BPyInit_bmesh_utils(void);
|
||||
|
||||
#endif /* __BMESH_PY_UTILS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user