PythonMonkey v1.1.1 (dev)
|
Function for wrapping arbitrary PyObjects into the appropriate PyType class, and coercing JS types to python types. More...
#include <jsapi.h>
#include <Python.h>
Go to the source code of this file.
Functions | |
PyObject * | pyTypeFactory (JSContext *cx, JS::HandleValue rval) |
Function that takes a JS::Value and returns a corresponding PyObject* object, doing shared memory management when necessary. | |
Function for wrapping arbitrary PyObjects into the appropriate PyType class, and coercing JS types to python types.
PyObject * pyTypeFactory | ( | JSContext * | cx, |
JS::HandleValue | rval | ||
) |
Function that takes a JS::Value and returns a corresponding PyObject* object, doing shared memory management when necessary.
cx | - Pointer to the javascript context of the JS::Value |
rval | - The JS::Value who's type and value we wish to encapsulate |