diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-17 09:58:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-17 09:58:41 -0200 |
commit | 2cffb08a5c770678999a313a83c76652a3d02d4c (patch) | |
tree | 2a638e6dc4e4682863aadcff0073fa7af0c6198e /func.h | |
parent | 15f40fddca66301a53f8b0adf41958c7e9add945 (diff) | |
download | lua-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 | ||
17 | Long luaI_funccollector (void); | 21 | Long luaI_funccollector (void); |