PythonMonkey   v1.0.0 (dev)
Loading...
Searching...
No Matches
JSFunctionProxyMethodDefinitions Struct Reference

This struct is a bundle of methods used by the JSFunctionProxy type. More...

#include <JSFunctionProxy.hh>

Static Public Member Functions

static void JSFunctionProxy_dealloc (JSFunctionProxy *self)
 Deallocation method (.tp_dealloc), removes the reference to the underlying JSFunction before freeing the JSFunctionProxy.
 
static PyObject * JSFunctionProxy_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
 New method (.tp_new), creates a new instance of the JSFunctionProxy type, exposed as the new() method in python.
 
static PyObject * JSFunctionProxy_call (PyObject *self, PyObject *args, PyObject *kwargs)
 Call method (.tp_call), called when the JSFunctionProxy is called.
 

Detailed Description

This struct is a bundle of methods used by the JSFunctionProxy type.

Member Function Documentation

◆ JSFunctionProxy_call()

PyObject * JSFunctionProxyMethodDefinitions::JSFunctionProxy_call ( PyObject *  self,
PyObject *  args,
PyObject *  kwargs 
)
static

Call method (.tp_call), called when the JSFunctionProxy is called.

Parameters
self- this callable, might be a free function or a method
args- args to the function
kwargs- keyword args to the function
Returns
PyObject* - Result of the function call

◆ JSFunctionProxy_dealloc()

void JSFunctionProxyMethodDefinitions::JSFunctionProxy_dealloc ( JSFunctionProxy self)
static

Deallocation method (.tp_dealloc), removes the reference to the underlying JSFunction before freeing the JSFunctionProxy.

Parameters
self- The JSFunctionProxy to be free'd

◆ JSFunctionProxy_new()

PyObject * JSFunctionProxyMethodDefinitions::JSFunctionProxy_new ( PyTypeObject *  type,
PyObject *  args,
PyObject *  kwds 
)
static

New method (.tp_new), creates a new instance of the JSFunctionProxy type, exposed as the new() method in python.

Parameters
type- The type of object to be created, will always be JSFunctionProxyType or a derived type
args- arguments to the new() method, not used
kwds- keyword arguments to the new() method, not used
Returns
PyObject* - A new instance of JSFunctionProxy

The documentation for this struct was generated from the following files: