From 1ab2b93462753b5f500ada31353acc444d4e7b7c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 5 May 2005 17:47:02 -0300 Subject: debug information for last line of a function definition --- lundump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lundump.c') diff --git a/lundump.c b/lundump.c index 74fcf4e0..7b44c425 100644 --- a/lundump.c +++ b/lundump.c @@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 2.2 2004/04/30 20:13:38 roberto Exp $ +** $Id: lundump.c,v 2.3 2004/10/04 19:01:12 roberto Exp roberto $ ** load pre-compiled Lua chunks ** See Copyright Notice in lua.h */ @@ -201,7 +201,8 @@ static Proto* LoadFunction (LoadState* S, TString* p) setptvalue2s(L, L->top, f); incr_top(L); f->source=LoadString(S); if (f->source==NULL) f->source=p; - f->lineDefined=LoadInt(S); + f->linedefined=LoadInt(S); + f->lastlinedefined=LoadInt(S); f->nups=LoadByte(S); f->numparams=LoadByte(S); f->is_vararg=LoadByte(S); -- cgit v1.2.3-55-g6feb