Mercurial > pymonkey
view utils.h @ 37:d4efcbb06964
Added a new PYM_JSFunction type, PYM_JSContext.define_property(), and PYM_JSContext.new_function(). Also fixed a memory leak.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 02 Jul 2009 22:42:31 -0700 |
parents | 3f8a2db496f5 |
children | 0b9a316ce4ef |
line wrap: on
line source
#ifndef PYM_UTILS_H #define PYM_UTILS_H #include "context.h" #include <jsapi.h> #include <jsdhash.h> #include <Python/Python.h> typedef struct { JSDHashEntryStub base; void *value; } PYM_HashEntry; extern PyObject *PYM_error; extern int PYM_pyObjectToJsval(JSContext *cx, PyObject *object, jsval *rval); extern PyObject * PYM_jsvalToPyObject(PYM_JSContextObject *context, jsval value); #endif