Blender V5.0
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
8
9#pragma once
10
11extern "C" {
12#include <Python.h>
13}
14
15#include <iostream>
16
17#include "../system/Id.h"
18
20
21extern PyTypeObject Id_Type;
22
23#define BPy_Id_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Id_Type))
24
25/*---------------------------Python BPy_Id structure definition----------*/
26typedef struct {
27 PyObject_HEAD
29} BPy_Id;
30
31/*---------------------------Python BPy_Id visible prototypes-----------*/
32
33int Id_Init(PyObject *module);
34
PyTypeObject Id_Type
Definition BPy_Id.cpp:157
int Id_Init(PyObject *module)
Definition BPy_Id.cpp:18
Identification system.
static struct PyModuleDef module
Definition python.cpp:796
PyObject_HEAD Freestyle::Id * id
Definition BPy_Id.h:28