Mercurial > pymonkey
view function.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 | 8a7abd0bb48d |
children | bc4263c6ae82 |
line wrap: on
line source
#ifndef PYM_FUNCTION_H #define PYM_FUNCTION_H #include "object.h" #include "context.h" #include <jsapi.h> #include <Python/Python.h> typedef struct { PYM_JSObject base; PyObject *callable; } PYM_JSFunction; extern PyTypeObject PYM_JSFunctionType; extern PYM_JSFunction * PYM_newJSFunctionFromCallable(PYM_JSContextObject *context, PyObject *callable, const char *name); #endif