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