From 2cffb08a5c770678999a313a83c76652a3d02d4c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 17 Oct 1995 09:58:41 -0200 Subject: 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. --- func.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'func.h') 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 char marked; int size; Byte *code; + int lineDefined; + char *name1; /* function or method name (or null if main) */ + char *name2; /* object name (or null if not method) */ + char *fileName; } TFunc; Long luaI_funccollector (void); -- cgit v1.2.3-55-g6feb