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 --- ldump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldump.c') diff --git a/ldump.c b/ldump.c index c1220ffd..e3823a0d 100644 --- a/ldump.c +++ b/ldump.c @@ -1,5 +1,5 @@ /* -** $Id: ldump.c,v 2.3 2004/07/09 18:24:41 roberto Exp $ +** $Id: ldump.c,v 2.4 2004/10/04 19:01:12 roberto Exp roberto $ ** save pre-compiled Lua chunks ** See Copyright Notice in lua.h */ @@ -136,7 +136,8 @@ static void DumpConstants(const Proto* f, DumpState* D) static void DumpFunction(const Proto* f, const TString* p, DumpState* D) { DumpString((f->source==p) ? NULL : f->source,D); - DumpInt(f->lineDefined,D); + DumpInt(f->linedefined,D); + DumpInt(f->lastlinedefined,D); DumpByte(f->nups,D); DumpByte(f->numparams,D); DumpByte(f->is_vararg,D); -- cgit v1.2.3-55-g6feb