python-2.7.6/include/funcobject.h File Reference

funcobject.h File Reference

Classes

struct  PyFunctionObject
 

Macros

#define PyFunction_Check(op)   (Py_TYPE(op) == &PyFunction_Type)
 
#define PyFunction_GET_CODE(func)   (((PyFunctionObject *)func) -> func_code)
 
#define PyFunction_GET_GLOBALS(func)   (((PyFunctionObject *)func) -> func_globals)
 
#define PyFunction_GET_MODULE(func)   (((PyFunctionObject *)func) -> func_module)
 
#define PyFunction_GET_DEFAULTS(func)   (((PyFunctionObject *)func) -> func_defaults)
 
#define PyFunction_GET_CLOSURE(func)   (((PyFunctionObject *)func) -> func_closure)
 

Functions

 PyAPI_DATA (PyTypeObject) PyFunction_Type
 
 PyAPI_FUNC (PyObject *) PyFunction_New(PyObject *
 
 PyAPI_FUNC (int) PyFunction_SetDefaults(PyObject *
 

Macro Definition Documentation

#define PyFunction_Check (   op)    (Py_TYPE(op) == &PyFunction_Type)

Definition at line 42 of file funcobject.h.

#define PyFunction_GET_CLOSURE (   func)    (((PyFunctionObject *)func) -> func_closure)

Definition at line 63 of file funcobject.h.

#define PyFunction_GET_CODE (   func)    (((PyFunctionObject *)func) -> func_code)

Definition at line 55 of file funcobject.h.

#define PyFunction_GET_DEFAULTS (   func)    (((PyFunctionObject *)func) -> func_defaults)

Definition at line 61 of file funcobject.h.

#define PyFunction_GET_GLOBALS (   func)    (((PyFunctionObject *)func) -> func_globals)

Definition at line 57 of file funcobject.h.

#define PyFunction_GET_MODULE (   func)    (((PyFunctionObject *)func) -> func_module)

Definition at line 59 of file funcobject.h.

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_FUNC ( PyObject )
PyAPI_FUNC ( int  )

Go to the source code of this file.