summaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/ldebug.c
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-11-22 10:05:39 +0800
committerLi Jin <dragon-fly@qq.com>2021-11-22 10:05:39 +0800
commit825b5d96f8a0d146615f0c6a76feab46da9baa60 (patch)
treedf450bac65848dddc4929383fdd0a48485254484 /src/3rdParty/lua/ldebug.c
parent125f709b065acb35bcd216001720c0bb4635dd25 (diff)
downloadyuescript-0.9.1.tar.gz
yuescript-0.9.1.tar.bz2
yuescript-0.9.1.zip
update macro spec and builtin Lua.v0.9.1
Diffstat (limited to 'src/3rdParty/lua/ldebug.c')
-rw-r--r--src/3rdParty/lua/ldebug.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/3rdParty/lua/ldebug.c b/src/3rdParty/lua/ldebug.c
index dde4669..30a2882 100644
--- a/src/3rdParty/lua/ldebug.c
+++ b/src/3rdParty/lua/ldebug.c
@@ -301,7 +301,14 @@ static void collectvalidlines (lua_State *L, Closure *f) {
301 sethvalue2s(L, L->top, t); /* push it on stack */ 301 sethvalue2s(L, L->top, t); /* push it on stack */
302 api_incr_top(L); 302 api_incr_top(L);
303 setbtvalue(&v); /* boolean 'true' to be the value of all indices */ 303 setbtvalue(&v); /* boolean 'true' to be the value of all indices */
304 for (i = 0; i < p->sizelineinfo; i++) { /* for all instructions */ 304 if (!p->is_vararg) /* regular function? */
305 i = 0; /* consider all instructions */
306 else { /* vararg function */
307 lua_assert(p->code[0] == OP_VARARGPREP);
308 currentline = nextline(p, currentline, 0);
309 i = 1; /* skip first instruction (OP_VARARGPREP) */
310 }
311 for (; i < p->sizelineinfo; i++) { /* for each instruction */
305 currentline = nextline(p, currentline, i); /* get its line */ 312 currentline = nextline(p, currentline, i); /* get its line */
306 luaH_setint(L, t, currentline, &v); /* table[line] = true */ 313 luaH_setint(L, t, currentline, &v); /* table[line] = true */
307 } 314 }