summaryrefslogtreecommitdiff
path: root/func.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-17 09:58:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-17 09:58:41 -0200
commit2cffb08a5c770678999a313a83c76652a3d02d4c (patch)
tree2a638e6dc4e4682863aadcff0073fa7af0c6198e /func.h
parent15f40fddca66301a53f8b0adf41958c7e9add945 (diff)
downloadlua-2cffb08a5c770678999a313a83c76652a3d02d4c.tar.gz
lua-2cffb08a5c770678999a313a83c76652a3d02d4c.tar.bz2
lua-2cffb08a5c770678999a313a83c76652a3d02d4c.zip
new style for debug information about functions: no more SETFUNCTION
opcodes. When a function is called, its entry in the stack is marked with LUA_T_(C)MARK, so function 'luaD_stackedfunction' can find it if needed. Functions now have their file names in the headers, so there is no need of 'addfile' and the like.
Diffstat (limited to 'func.h')
-rw-r--r--func.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/func.h b/func.h
index 8d2d124d..56066a47 100644
--- a/func.h
+++ b/func.h
@@ -12,6 +12,10 @@ typedef struct TFunc
12 char marked; 12 char marked;
13 int size; 13 int size;
14 Byte *code; 14 Byte *code;
15 int lineDefined;
16 char *name1; /* function or method name (or null if main) */
17 char *name2; /* object name (or null if not method) */
18 char *fileName;
15} TFunc; 19} TFunc;
16 20
17Long luaI_funccollector (void); 21Long luaI_funccollector (void);