diff 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
line wrap: on
line diff
--- a/src/function.h	Sun Aug 30 10:54:56 2009 -0700
+++ b/src/function.h	Sun Aug 30 11:13:00 2009 -0700
@@ -47,6 +47,9 @@
   PYM_JSObject base;
   JSFunction *fun;
   PyObject *name;
+  const char *filename;
+  unsigned int baseLineno;
+  unsigned int lineExtent;
 } PYM_JSFunction;
 
 extern PyTypeObject PYM_JSFunctionType;