mirror of
https://github.com/python/cpython.git
synced 2026-05-09 12:00:49 +00:00
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
22 lines
421 B
C
22 lines
421 B
C
/* Sentinel object interface */
|
|
|
|
#ifndef Py_SENTINELOBJECT_H
|
|
#define Py_SENTINELOBJECT_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef Py_LIMITED_API
|
|
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);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_SENTINELOBJECT_H */
|