Blender V5.3
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
28int _PyArg_CheckPositional(const char *name, Py_ssize_t nargs, Py_ssize_t min, Py_ssize_t max);
btScalar max
int _PyArg_CheckPositional(const char *name, Py_ssize_t nargs, Py_ssize_t min, Py_ssize_t max)
#define min(a, b)
Definition sort.cc:38