Mercurial > pymonkey
view context.h @ 47:3f4982759e55
Converting JS exceptions into Python exceptions is now doable, albeit not yet implemented, thanks to the discovery of JSOPTION_DONT_REPORT_UNCAUGHT. Also, JS warnings are now converted into Python warnings.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 06 Jul 2009 08:13:45 -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