The only remaining code in source/blender that must be compiled as C is now datatoc generated code and the DNA defaults that use designated initializers. Pull Request: https://projects.blender.org/blender/blender/pulls/134469
33 lines
797 B
C
33 lines
797 B
C
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup freestyle
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
extern "C" {
|
|
#include <Python.h>
|
|
}
|
|
|
|
#include "../stroke/Operators.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
extern PyTypeObject Operators_Type;
|
|
|
|
#define BPy_Operators_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Operators_Type))
|
|
|
|
/*---------------------------Python BPy_Operators structure definition----------*/
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
} BPy_Operators;
|
|
|
|
/*---------------------------Python BPy_Operators visible prototypes-----------*/
|
|
|
|
int Operators_Init(PyObject *module);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|