921d6dc3e2
source/blender/freestyle wasn't fillowing Blender's own conventions for integer types. This had the down-side of making the code_clean.py utility attempt to replace `unsigned int` types which always failed. While this edit could have been manually ignored for all files in freestyle, add the typedef's to `FreestyleConfig.h` and follow Blender's convention instead.
38 lines
1003 B
C
38 lines
1003 B
C
/* SPDX-FileCopyrightText: 2023 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup freestyle
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "../BPy_UnaryFunction0D.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
extern PyTypeObject UnaryFunction0DUnsigned_Type;
|
|
|
|
#define BPy_UnaryFunction0DUnsigned_Check(v) \
|
|
(PyObject_IsInstance((PyObject *)v, (PyObject *)&UnaryFunction0DUnsigned_Type))
|
|
|
|
/*---------------------------Python BPy_UnaryFunction0DUnsigned structure definition----------*/
|
|
typedef struct {
|
|
BPy_UnaryFunction0D py_uf0D;
|
|
Freestyle::UnaryFunction0D<uint> *uf0D_unsigned;
|
|
} BPy_UnaryFunction0DUnsigned;
|
|
|
|
/*---------------------------Python BPy_UnaryFunction0DUnsigned visible prototypes-----------*/
|
|
int UnaryFunction0DUnsigned_Init(PyObject *module);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|