Spaces:
Runtime error
Runtime error
/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */ | |
/* Greenlet object interface */ | |
extern "C" { | |
/* This is deprecated and undocumented. It does not change. */ | |
typedef struct _greenlet { | |
PyObject_HEAD | |
PyObject* weakreflist; | |
PyObject* dict; | |
implementation_ptr_t pimpl; | |
} PyGreenlet; | |
/* C API functions */ | |
/* Total number of symbols that are exported */ | |
/* This section is used by modules that uses the greenlet C API */ | |
static void** _PyGreenlet_API = NULL; | |
/* | |
* PyGreenlet_New(PyObject *args) | |
* | |
* greenlet.greenlet(run, parent=None) | |
*/ | |
/* | |
* PyGreenlet_GetCurrent(void) | |
* | |
* greenlet.getcurrent() | |
*/ | |
/* | |
* PyGreenlet_Throw( | |
* PyGreenlet *greenlet, | |
* PyObject *typ, | |
* PyObject *val, | |
* PyObject *tb) | |
* | |
* g.throw(...) | |
*/ | |
/* | |
* PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args) | |
* | |
* g.switch(*args, **kwargs) | |
*/ | |
/* | |
* PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent) | |
* | |
* g.parent = new_parent | |
*/ | |
/* | |
* PyGreenlet_GetParent(PyObject* greenlet) | |
* | |
* return greenlet.parent; | |
* | |
* This could return NULL even if there is no exception active. | |
* If it does not return NULL, you are responsible for decrementing the | |
* reference count. | |
*/ | |
/* | |
* deprecated, undocumented alias. | |
*/ | |
/* Macro that imports greenlet and initializes C API */ | |
/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we | |
keep the older definition to be sure older code that might have a copy of | |
the header still works. */ | |
} | |