From fed236ca7fa066a51aae352968c5a916175b3716 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 25 Feb 2014 11:31:16 -0300 Subject: detail (unknown lines are marked as -1, not 0) --- ldebug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index c8a2c252..6e1dfd28 100644 --- a/ldebug.h +++ b/ldebug.h @@ -1,5 +1,5 @@ /* -** $Id: ldebug.h,v 2.9 2013/04/29 16:58:10 roberto Exp roberto $ +** $Id: ldebug.h,v 2.10 2013/05/06 17:19:11 roberto Exp roberto $ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ @@ -13,7 +13,7 @@ #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) -#define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) +#define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1) #define resethookcount(L) (L->hookcount = L->basehookcount) -- cgit v1.2.3-55-g6feb