Blender  V3.3
BPy_Id.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 extern "C" {
10 #include <Python.h>
11 }
12 
13 #include <iostream>
14 
15 #include "../system/Id.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
22 
23 extern PyTypeObject Id_Type;
24 
25 #define BPy_Id_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Id_Type))
26 
27 /*---------------------------Python BPy_Id structure definition----------*/
28 typedef struct {
29  PyObject_HEAD
31 } BPy_Id;
32 
33 /*---------------------------Python BPy_Id visible prototypes-----------*/
34 
35 int Id_Init(PyObject *module);
36 
38 
39 #ifdef __cplusplus
40 }
41 #endif
PyTypeObject Id_Type
Definition: BPy_Id.cpp:157
int Id_Init(PyObject *module)
Definition: BPy_Id.cpp:20
static struct PyModuleDef module
Definition: python.cpp:972
Definition: BPy_Id.h:28
PyObject_HEAD Freestyle::Id * id
Definition: BPy_Id.h:30