Blender V5.3
python_compat.hh File Reference

header-only compatibility defines. More...

#include <Python.h>

Go to the source code of this file.

Macros

#define Py_HashPointer   _Py_HashPointer
#define PyThreadState_GetUnchecked   _PyThreadState_UncheckedGet

Functions

int _PyArg_CheckPositional (const char *name, Py_ssize_t nargs, Py_ssize_t min, Py_ssize_t max)

Detailed Description

header-only compatibility defines.

Note
this header should not be removed/cleaned where Python is used. Because its required for Blender to build against different versions of Python.

Definition in file python_compat.hh.

Macro Definition Documentation

◆ Py_HashPointer

◆ PyThreadState_GetUnchecked

#define PyThreadState_GetUnchecked   _PyThreadState_UncheckedGet

Definition at line 23 of file python_compat.hh.

Referenced by blender::BPY_python_backtrace(), and blender::BPY_thread_save().

Function Documentation

◆ _PyArg_CheckPositional()

int _PyArg_CheckPositional ( const char * name,
Py_ssize_t nargs,
Py_ssize_t min,
Py_ssize_t max )