mirror of
https://github.com/python/cpython.git
synced 2024-11-25 09:39:56 +01:00
39506ee565
Move _PyCapsule_SetTraverse() definition to a new internal header file: pycore_capsule.h.
18 lines
397 B
C
18 lines
397 B
C
#ifndef Py_INTERNAL_PYCAPSULE_H
|
|
#define Py_INTERNAL_PYCAPSULE_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
#endif
|
|
|
|
// Export for '_socket' shared extension
|
|
PyAPI_FUNC(int) _PyCapsule_SetTraverse(PyObject *op, traverseproc traverse_func, inquiry clear_func);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTERNAL_PYCAPSULE_H */
|