cpython/Include/cpython/sentinelobject.h
Victor Stinner f0e90d78eb
gh-148829: Move sentinelobject.h to Include/cpython/ (#149186)
This C API is not part of the limited C API, so move it to the
CPython C API.
2026-04-30 16:57:29 +02:00

22 lines
443 B
C

/* Sentinel object interface */
#ifndef Py_LIMITED_API
#ifndef Py_SENTINELOBJECT_H
#define Py_SENTINELOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
PyAPI_DATA(PyTypeObject) PySentinel_Type;
#define PySentinel_Check(op) Py_IS_TYPE((op), &PySentinel_Type)
PyAPI_FUNC(PyObject *) PySentinel_New(
const char *name,
const char *module_name);
#ifdef __cplusplus
}
#endif
#endif /* !Py_SENTINELOBJECT_H */
#endif /* !Py_LIMITED_API */