Mercurial > pymonkey
view function.h @ 46:a0f677cfc679
Added basic functionality for passing useful exceptions between Python and JS code.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 06 Jul 2009 01:37:16 -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