Blender
V5.3
source
blender
python
generic
python_compat.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
12
13
#pragma once
14
15
#include <Python.h>
16
17
/* This code is not placed in the blender namespace, as it is meant to replace Python functions
18
* in the global namespace. */
19
20
/* Python 3.14 made some changes, use the "new" names. */
21
#if PY_VERSION_HEX < 0x030e0000
22
# define Py_HashPointer _Py_HashPointer
23
# define PyThreadState_GetUnchecked _PyThreadState_UncheckedGet
24
/* TODO: Support: `PyDict_Pop`, it has different arguments. */
25
#endif
26
28
int
_PyArg_CheckPositional
(
const
char
*name, Py_ssize_t nargs, Py_ssize_t
min
, Py_ssize_t
max
);
max
btScalar max
Definition
btHeightfieldTerrainShape.h:79
_PyArg_CheckPositional
int _PyArg_CheckPositional(const char *name, Py_ssize_t nargs, Py_ssize_t min, Py_ssize_t max)
Definition
python_compat.cc:16
min
#define min(a, b)
Definition
sort.cc:38
Generated on
for Blender by
doxygen
1.18.0