Cleanup: remove typedef struct & function(void) in Python declarations

This commit is contained in:
Campbell Barton
2025-01-07 11:26:06 +11:00
parent 724e4fe937
commit a404f521a3
11 changed files with 22 additions and 22 deletions

View File

@@ -13,7 +13,7 @@
extern struct PyC_StringEnumItems bpygpu_primtype_items[];
extern struct PyC_StringEnumItems bpygpu_dataformat_items[];
bool bpygpu_is_init_or_error(void);
bool bpygpu_is_init_or_error();
#define BPYGPU_IS_INIT_OR_ERROR_OBJ \
if (UNLIKELY(!bpygpu_is_init_or_error())) { \

View File

@@ -25,14 +25,14 @@ extern PyTypeObject BPyGPUShader_Type;
#define BPyGPUShader_Check(v) (Py_TYPE(v) == &BPyGPUShader_Type)
typedef struct BPyGPUShader {
struct BPyGPUShader {
PyObject_VAR_HEAD
struct GPUShader *shader;
bool is_builtin;
} BPyGPUShader;
};
PyObject *BPyGPUShader_CreatePyObject(struct GPUShader *shader, bool is_builtin);
PyObject *bpygpu_shader_init(void);
PyObject *bpygpu_shader_init();
/* gpu_py_shader_create_info.cc */