2022-08-17 08:48:43 -03:00
|
|
|
#ifndef Py_TESTCAPI_PARTS_H
|
|
|
|
#define Py_TESTCAPI_PARTS_H
|
|
|
|
|
|
|
|
#include "pyconfig.h" // for Py_TRACE_REFS
|
|
|
|
|
|
|
|
// Figure out if Limited API is available for this build. If it isn't we won't
|
|
|
|
// build tests for it.
|
|
|
|
// Currently, only Py_TRACE_REFS disables Limited API.
|
|
|
|
#ifdef Py_TRACE_REFS
|
|
|
|
#undef LIMITED_API_AVAILABLE
|
|
|
|
#else
|
|
|
|
#define LIMITED_API_AVAILABLE 1
|
|
|
|
#endif
|
2022-07-08 12:56:26 -03:00
|
|
|
|
2022-08-17 08:48:43 -03:00
|
|
|
// Always enable assertions
|
2022-08-10 06:53:10 -03:00
|
|
|
#undef NDEBUG
|
|
|
|
|
2022-08-17 08:48:43 -03:00
|
|
|
#if !defined(LIMITED_API_AVAILABLE) && defined(Py_LIMITED_API)
|
|
|
|
// Limited API being unavailable means that with Py_LIMITED_API defined
|
|
|
|
// we can't even include Python.h.
|
|
|
|
// Do nothing; the .c file that defined Py_LIMITED_API should also do nothing.
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
2022-07-13 08:22:45 -03:00
|
|
|
int _PyTestCapi_Init_Vectorcall(PyObject *module);
|
2022-08-01 10:04:14 -03:00
|
|
|
int _PyTestCapi_Init_Heaptype(PyObject *module);
|
2022-08-10 04:10:25 -03:00
|
|
|
int _PyTestCapi_Init_Unicode(PyObject *module);
|
2022-11-14 17:23:41 -04:00
|
|
|
int _PyTestCapi_Init_GetArgs(PyObject *module);
|
2022-11-15 03:17:52 -04:00
|
|
|
int _PyTestCapi_Init_PyTime(PyObject *module);
|
|
|
|
int _PyTestCapi_Init_DateTime(PyObject *module);
|
2022-08-17 08:48:43 -03:00
|
|
|
|
|
|
|
#ifdef LIMITED_API_AVAILABLE
|
|
|
|
int _PyTestCapi_Init_VectorcallLimited(PyObject *module);
|
|
|
|
#endif // LIMITED_API_AVAILABLE
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif // Py_TESTCAPI_PARTS_H
|