ROOT
master
Reference Guide
Loading...
Searching...
No Matches
PythonLimitedAPI.h
Go to the documentation of this file.
1
#ifndef ROOT_PythonLimitedAPI_h
2
#define ROOT_PythonLimitedAPI_h
3
4
// Use what is in the limited API since Python 3.11 if we're building with at
5
// least Python 3.11. The reason why we can't go back to 3.10 is that that at
6
// that point, the new buffer interface was not part of the limited API yet.
7
#if PY_VERSION_HEX >= 0x030B0000
8
9
// On Windows we can't use the stable ABI yet: it requires linking against a
10
// different libpython, so as long as we don't build all translation units in
11
// the ROOT Pythonization library with the stable ABI we should not use it.
12
#ifndef _WIN32
13
#define Py_LIMITED_API 0x030B0000
14
#endif
15
16
#endif
17
18
#include <Python.h>
19
20
#endif
bindings
pyroot
pythonizations
src
PythonLimitedAPI.h
ROOTmaster - Reference Guide Generated on Mon Mar 30 2026 04:33:17 (GVA Time) using Doxygen 1.10.0