1 #ifndef Py_INTERNAL_FUNCTION_H
2 #define Py_INTERNAL_FUNCTION_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 #define FUNC_MAX_WATCHERS 8
12
13 struct _py_func_state {
14 uint32_t next_version;
15 };
16
17 extern PyFunctionObject* _PyFunction_FromConstructor(PyFrameConstructor *constr);
18
19 extern uint32_t _PyFunction_GetVersionForCurrentState(PyFunctionObject *func);
20 extern PyObject *_Py_set_function_type_params(
21 PyThreadState* unused, PyObject *func, PyObject *type_params);
22
23 #ifdef __cplusplus
24 }
25 #endif
26 #endif /* !Py_INTERNAL_FUNCTION_H */