mirror of
https://github.com/python/cpython.git
synced 2026-05-10 04:20:54 +00:00
22 lines
443 B
C
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 */
|