From 0802a9df9e9326c5e61f0d6b69685c2c253de5f2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Aug 2000 17:42:07 -0300 Subject: no more options for debug information: it is always on --- ltests.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 677f7c8d..233775aa 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.30 2000/08/04 19:38:35 roberto Exp roberto $ +** $Id: ltests.c,v 1.31 2000/08/08 18:26:05 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -69,11 +69,7 @@ static int pushop (Proto *p, int pc) { Instruction i = p->code[pc]; OpCode o = GET_OPCODE(i); const char *name = instrname[o]; - int *lineinfo = p->lineinfo; - if (lineinfo) - sprintf(buff, "%5d - ", luaG_getline(lineinfo, pc, 1, NULL)); - else - strcpy(buff, " "); + sprintf(buff, "%5d - ", luaG_getline(p->lineinfo, pc, 1, NULL)); switch ((enum Mode)luaK_opproperties[o].mode) { case iO: sprintf(buff+8, "%s", name); -- cgit v1.2.3-55-g6feb