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 /ldebug.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 'ldebug.c')
| -rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldebug.c,v 1.109 2002/04/22 14:40:23 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.110 2002/04/24 20:07:46 roberto Exp roberto $ |
| 3 | ** Debug Interface | 3 | ** Debug Interface |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -48,7 +48,7 @@ static int currentline (lua_State *L, CallInfo *ci) { | |||
| 48 | if (pc < 0) | 48 | if (pc < 0) |
| 49 | return -1; /* only active lua functions have current-line information */ | 49 | return -1; /* only active lua functions have current-line information */ |
| 50 | else | 50 | else |
| 51 | return ci_func(ci)->l.p->lineinfo[pc]; | 51 | return getline(ci_func(ci)->l.p, pc); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | 54 | ||
