diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-02 10:06:20 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-02 10:06:20 -0300 |
| commit | 9a0f0dcc77adbde0618af1f10e5d430f42b76cc2 (patch) | |
| tree | 04162ec7fc538fc3054ffa7fb4c5e0181c3f3571 /ltests.c | |
| parent | 751cd867d3e0338279fa6f3390c8b7ddc0108659 (diff) | |
| download | lua-9a0f0dcc77adbde0618af1f10e5d430f42b76cc2.tar.gz lua-9a0f0dcc77adbde0618af1f10e5d430f42b76cc2.tar.bz2 lua-9a0f0dcc77adbde0618af1f10e5d430f42b76cc2.zip | |
precompiler may create functions without `lineinfo'
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.117 2002/04/24 20:07:46 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.118 2002/05/01 20:40:42 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -144,7 +144,7 @@ static char *buildop (Proto *p, int pc, char *buff) { | |||
| 144 | Instruction i = p->code[pc]; | 144 | Instruction i = p->code[pc]; |
| 145 | OpCode o = GET_OPCODE(i); | 145 | OpCode o = GET_OPCODE(i); |
| 146 | const char *name = luaP_opnames[o]; | 146 | const char *name = luaP_opnames[o]; |
| 147 | int line = p->lineinfo[pc]; | 147 | int line = getline(p, pc); |
| 148 | sprintf(buff, "(%4d) %4d - ", line, pc); | 148 | sprintf(buff, "(%4d) %4d - ", line, pc); |
| 149 | switch (getOpMode(o)) { | 149 | switch (getOpMode(o)) { |
| 150 | case iABC: | 150 | case iABC: |
