CoolFace
Apppublic

vidya7732/AI_Doctor_LLM_GenModel

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
boolobject.h35 linesDownload Raw Back to include
1/* Boolean object interface */2 3#ifndef Py_BOOLOBJECT_H4#define Py_BOOLOBJECT_H5#ifdef __cplusplus6extern "C" {7#endif8 9 10PyAPI_DATA(PyTypeObject) PyBool_Type;11 12#define PyBool_Check(x) Py_IS_TYPE(x, &PyBool_Type)13 14/* Py_False and Py_True are the only two bools in existence.15Don't forget to apply Py_INCREF() when returning either!!! */16 17/* Don't use these directly */18PyAPI_DATA(struct _longobject) _Py_FalseStruct, _Py_TrueStruct;19 20/* Use these macros */21#define Py_False ((PyObject *) &_Py_FalseStruct)22#define Py_True ((PyObject *) &_Py_TrueStruct)23 24/* Macros for returning Py_True or Py_False, respectively */25#define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True26#define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False27 28/* Function to return a bool from a C long */29PyAPI_FUNC(PyObject *) PyBool_FromLong(long);30 31#ifdef __cplusplus32}33#endif34#endif /* !Py_BOOLOBJECT_H */35