python-2.7.6/include/boolobject.h File Reference

boolobject.h File Reference

Macros

#define PyBool_Check(x)   (Py_TYPE(x) == &PyBool_Type)
 
#define Py_False   ((PyObject *) &_Py_ZeroStruct)
 
#define Py_True   ((PyObject *) &_Py_TrueStruct)
 
#define Py_RETURN_TRUE   return Py_INCREF(Py_True), Py_True
 
#define Py_RETURN_FALSE   return Py_INCREF(Py_False), Py_False
 

Typedefs

typedef PyIntObject PyBoolObject
 

Functions

 PyAPI_DATA (PyTypeObject) PyBool_Type
 
 PyAPI_DATA (PyIntObject) _Py_ZeroStruct
 
 PyAPI_FUNC (PyObject *) PyBool_FromLong(long)
 

Variables

 _Py_TrueStruct
 

Macro Definition Documentation

#define Py_False   ((PyObject *) &_Py_ZeroStruct)

Definition at line 23 of file boolobject.h.

#define Py_RETURN_FALSE   return Py_INCREF(Py_False), Py_False

Definition at line 28 of file boolobject.h.

#define Py_RETURN_TRUE   return Py_INCREF(Py_True), Py_True

Definition at line 27 of file boolobject.h.

#define Py_True   ((PyObject *) &_Py_TrueStruct)

Definition at line 24 of file boolobject.h.

#define PyBool_Check (   x)    (Py_TYPE(x) == &PyBool_Type)

Definition at line 14 of file boolobject.h.

Typedef Documentation

Definition at line 10 of file boolobject.h.

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_DATA ( PyIntObject  )
PyAPI_FUNC ( PyObject )

Variable Documentation

_Py_TrueStruct

Definition at line 20 of file boolobject.h.

Go to the source code of this file.