From 9a0f0dcc77adbde0618af1f10e5d430f42b76cc2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 2 May 2002 10:06:20 -0300 Subject: precompiler may create functions without `lineinfo' --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 4ee1b05f..8cb5f48b 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.109 2002/04/22 14:40:23 roberto Exp roberto $ +** $Id: ldebug.c,v 1.110 2002/04/24 20:07:46 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -48,7 +48,7 @@ static int currentline (lua_State *L, CallInfo *ci) { if (pc < 0) return -1; /* only active lua functions have current-line information */ else - return ci_func(ci)->l.p->lineinfo[pc]; + return getline(ci_func(ci)->l.p, pc); } -- cgit v1.2.3-55-g6feb