Cleanup: remove typedef struct & function(void) in Python declarations
This commit is contained in:
@@ -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())) { \
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user