Mercurial > pymonkey
comparison src/function.h @ 154:5ec81091cb89
Added filename/line-number metadata to functions. Wanted to just add a 'script' property but this proved problematic--see the TODO in the code for more information.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 30 Aug 2009 11:13:00 -0700 |
parents | 80463c8c7930 |
children | 56181fb5fc7e |
comparison
equal
deleted
inserted
replaced
153:9ea6a9a566e2 | 154:5ec81091cb89 |
---|---|
45 | 45 |
46 typedef struct { | 46 typedef struct { |
47 PYM_JSObject base; | 47 PYM_JSObject base; |
48 JSFunction *fun; | 48 JSFunction *fun; |
49 PyObject *name; | 49 PyObject *name; |
50 const char *filename; | |
51 unsigned int baseLineno; | |
52 unsigned int lineExtent; | |
50 } PYM_JSFunction; | 53 } PYM_JSFunction; |
51 | 54 |
52 extern PyTypeObject PYM_JSFunctionType; | 55 extern PyTypeObject PYM_JSFunctionType; |
53 | 56 |
54 extern PYM_JSFunction * | 57 extern PYM_JSFunction * |