python-2.7.6/include/pyerrors.h File Reference

pyerrors.h File Reference
#include <stdarg.h>

Classes

struct  PyBaseExceptionObject
 
struct  PySyntaxErrorObject
 
struct  PySystemExitObject
 
struct  PyEnvironmentErrorObject
 

Macros

#define _PyErr_OCCURRED()   (_PyThreadState_Current->curexc_type)
 
#define PyExceptionClass_Check(x)
 
#define PyExceptionInstance_Check(x)
 
#define PyExceptionClass_Name(x)
 
#define PyExceptionInstance_Class(x)
 
#define PyErr_BadInternalCall()   _PyErr_BadInternalCall(__FILE__, __LINE__)
 

Functions

 PyAPI_FUNC (void) PyErr_SetNone(PyObject *)
 
PyObject const char * PyAPI_FUNC (PyObject *) PyErr_Occurred(void)
 
 PyAPI_FUNC (int) PyErr_GivenExceptionMatches(PyObject *
 
 PyAPI_DATA (PyObject *) PyExc_BaseException
 
PyObject const char const char Py_GCC_ATTRIBUTE ((format(printf, 2, 3)))
 
int PySignal_SetWakeupFd (int fd)
 
size_t const char Py_GCC_ATTRIBUTE ((format(printf, 3, 4)))
 
size_t const char va_list va Py_GCC_ATTRIBUTE ((format(printf, 3, 0)))
 

Variables

int lineno
 
PyObjectbase
 
PyObject PyObjectdict
 
char * doc
 
 int
 
size_t size
 
size_t const char * format
 

Macro Definition Documentation

#define _PyErr_OCCURRED ( )    (_PyThreadState_Current->curexc_type)

Definition at line 87 of file pyerrors.h.

#define PyErr_BadInternalCall ( )    _PyErr_BadInternalCall(__FILE__, __LINE__)

Definition at line 220 of file pyerrors.h.

#define PyExceptionClass_Check (   x)
Value:
(PyClass_Check((x)) || (PyType_Check((x)) && \
PyType_FastSubclass((PyTypeObject*)(x), Py_TPFLAGS_BASE_EXC_SUBCLASS)))
#define PyClass_Check(op)
Definition: classobject.h:41
#define PyType_Check(op)
Definition: object.h:445
#define Py_TPFLAGS_BASE_EXC_SUBCLASS
Definition: object.h:634
PyObject * x
Definition: stringobject.h:96

Definition at line 97 of file pyerrors.h.

#define PyExceptionClass_Name (   x)
Value:
? PyString_AS_STRING(((PyClassObject*)(x))->cl_name) \
: (char *)(((PyTypeObject*)(x))->tp_name))
#define PyClass_Check(op)
Definition: classobject.h:41
#define PyString_AS_STRING(op)
Definition: stringobject.h:91
PyObject * x
Definition: stringobject.h:96

Definition at line 105 of file pyerrors.h.

#define PyExceptionInstance_Check (   x)
Value:
PyType_FastSubclass((x)->ob_type, Py_TPFLAGS_BASE_EXC_SUBCLASS))
#define Py_TPFLAGS_BASE_EXC_SUBCLASS
Definition: object.h:634
PyObject * x
Definition: stringobject.h:96
#define PyInstance_Check(op)
Definition: classobject.h:42

Definition at line 101 of file pyerrors.h.

#define PyExceptionInstance_Class (   x)
Value:
? (PyObject*)((PyInstanceObject*)(x))->in_class \
: (PyObject*)((x)->ob_type)))
PyObject * x
Definition: stringobject.h:96
#define PyInstance_Check(op)
Definition: classobject.h:42

Definition at line 110 of file pyerrors.h.

Function Documentation

PyObject const char const char Py_GCC_ATTRIBUTE ( (format(printf, 2, 3))  )
size_t const char Py_GCC_ATTRIBUTE ( (format(printf, 3, 4))  )
size_t const char va_list va Py_GCC_ATTRIBUTE ( (format(printf, 3, 0))  )
PyAPI_DATA ( PyObject )
PyAPI_FUNC ( void  )
PyObject const char* PyAPI_FUNC ( PyObject )
PyAPI_FUNC ( int  )
int PySignal_SetWakeupFd ( int  fd)

Variable Documentation

char PyObject* base

Definition at line 224 of file pyerrors.h.

char PyObject PyObject * dict

Definition at line 224 of file pyerrors.h.

char* doc

Definition at line 226 of file pyerrors.h.

size_t const char* format

Definition at line 320 of file pyerrors.h.

int

Definition at line 237 of file pyerrors.h.

int lineno

Definition at line 217 of file pyerrors.h.

size_t size

Definition at line 320 of file pyerrors.h.

Go to the source code of this file.