Mercurial > pymonkey
view context.h @ 40:8a7abd0bb48d
Renamed PYM_newJSFunction() to PYM_newJSFunctionFromCallable(). PYM_newJSObject() now returns objects of type PYM_JSFunctionType as needed.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 03 Jul 2009 20:04:01 -0700 |
parents | fbb9a61fa030 |
children | bc4263c6ae82 |
line wrap: on
line source
#ifndef PYM_CONTEXT_H #define PYM_CONTEXT_H #include "runtime.h" #include <jsapi.h> #include <Python/Python.h> typedef struct { PyObject_HEAD PYM_JSRuntimeObject *runtime; JSContext *cx; } PYM_JSContextObject; extern PyTypeObject PYM_JSContextType; extern PYM_JSContextObject * PYM_newJSContextObject(PYM_JSRuntimeObject *runtime, JSContext *cx); #endif