Blender V4.3
python_utildefines.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#pragma once
12
13#define PyTuple_SET_ITEMS(op_arg, ...) \
14 { \
15 PyTupleObject *op = (PyTupleObject *)op_arg; \
16 PyObject **ob_items = op->ob_item; \
17 CHECK_TYPE_ANY(op_arg, PyObject *, PyTupleObject *); \
18 BLI_assert(VA_NARGS_COUNT(__VA_ARGS__) == PyTuple_GET_SIZE(op)); \
19 ARRAY_SET_ITEMS(ob_items, __VA_ARGS__); \
20 } \
21 (void)0
22
27Py_LOCAL_INLINE(int) PyList_APPEND(PyObject *op, PyObject *v)
28{
29 int ret = PyList_Append(op, v);
31 return ret;
32}
Py_LOCAL_INLINE(int) PyList_APPEND(PyObject *op
return ret
PyObject * v
Py_DecRef(v)