This struct is a bundle of methods used by the JSMethodProxy type.
More...
#include <JSMethodProxy.hh>
This struct is a bundle of methods used by the JSMethodProxy type.
◆ JSMethodProxy_call()
PyObject * JSMethodProxyMethodDefinitions::JSMethodProxy_call |
( |
PyObject * |
self, |
|
|
PyObject * |
args, |
|
|
PyObject * |
kwargs |
|
) |
| |
|
static |
Call method (.tp_call), called when the JSMethodProxy is called, properly handling self
and this
- Parameters
-
self | - the JSMethodProxy being called |
args | - args to the method |
kwargs | - keyword args to the method |
- Returns
- PyObject* - Result of the method call
◆ JSMethodProxy_dealloc()
void JSMethodProxyMethodDefinitions::JSMethodProxy_dealloc |
( |
JSMethodProxy * |
self | ) |
|
|
static |
Deallocation method (.tp_dealloc), removes the reference to the underlying JSFunction before freeing the JSMethodProxy.
- Parameters
-
◆ JSMethodProxy_new()
PyObject * JSMethodProxyMethodDefinitions::JSMethodProxy_new |
( |
PyTypeObject * |
type, |
|
|
PyObject * |
args, |
|
|
PyObject * |
kwds |
|
) |
| |
|
static |
New method (.tp_new), creates a new instance of the JSMethodProxy type, exposed as the new() method in python.
- Parameters
-
type | - The type of object to be created, will always be JSMethodProxyType or a derived type |
args | - arguments to the new() method, expected to be a JSFunctionProxy, and an object to bind self to |
kwds | - keyword arguments to the new() method, not used |
- Returns
- PyObject* - A new instance of JSMethodProxy
The documentation for this struct was generated from the following files: