1 | #ifndef Py_INTERNAL_CALL_H |
2 | #define Py_INTERNAL_CALL_H |
3 | #ifdef __cplusplus |
4 | extern "C" { |
5 | #endif |
6 | |
7 | #ifndef Py_BUILD_CORE |
8 | # error "this header requires Py_BUILD_CORE define" |
9 | #endif |
10 | |
11 | PyAPI_FUNC(PyObject *) _PyObject_Call_Prepend( |
12 | PyThreadState *tstate, |
13 | PyObject *callable, |
14 | PyObject *obj, |
15 | PyObject *args, |
16 | PyObject *kwargs); |
17 | |
18 | PyAPI_FUNC(PyObject *) _PyObject_FastCallDictTstate( |
19 | PyThreadState *tstate, |
20 | PyObject *callable, |
21 | PyObject *const *args, |
22 | size_t nargsf, |
23 | PyObject *kwargs); |
24 | |
25 | PyAPI_FUNC(PyObject *) _PyObject_Call( |
26 | PyThreadState *tstate, |
27 | PyObject *callable, |
28 | PyObject *args, |
29 | PyObject *kwargs); |
30 | |
31 | static inline PyObject * |
32 | _PyObject_CallNoArgTstate(PyThreadState *tstate, PyObject *func) { |
33 | return _PyObject_VectorcallTstate(tstate, func, NULL, 0, NULL); |
34 | } |
35 | |
36 | #ifdef __cplusplus |
37 | } |
38 | #endif |
39 | #endif /* !Py_INTERNAL_CALL_H */ |
40 | |