pycore_function.h 611 B

1234567891011121314151617181920212223242526
  1. #ifndef Py_INTERNAL_FUNCTION_H
  2. #define Py_INTERNAL_FUNCTION_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifndef Py_BUILD_CORE
  7. # error "this header requires Py_BUILD_CORE define"
  8. #endif
  9. #define FUNC_MAX_WATCHERS 8
  10. struct _py_func_state {
  11. uint32_t next_version;
  12. };
  13. extern PyFunctionObject* _PyFunction_FromConstructor(PyFrameConstructor *constr);
  14. extern uint32_t _PyFunction_GetVersionForCurrentState(PyFunctionObject *func);
  15. extern PyObject *_Py_set_function_type_params(
  16. PyThreadState* unused, PyObject *func, PyObject *type_params);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif /* !Py_INTERNAL_FUNCTION_H */