aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-13 13:07:53 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-13 13:07:53 -0200
commitfdc25a1ebfe9968dcec390dd556375105aa0be40 (patch)
tree43759131636a501ec92475d453fd1a1c73bc8090 /lvm.c
parent3b06f983ae0e57b90cdeb500c84bb524e5c3635b (diff)
downloadlua-fdc25a1ebfe9968dcec390dd556375105aa0be40.tar.gz
lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.tar.bz2
lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.zip
New functions 'lua_resetthread' and 'coroutine.kill'
New functions to reset/kill a thread/coroutine, mainly (only?) to close any pending to-be-closed variable. ('lua_resetthread' also allows a thread to be reused...)
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index fc8722a8..652095dc 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1565,7 +1565,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
1565 if (nparams1) /* vararg function? */ 1565 if (nparams1) /* vararg function? */
1566 delta = ci->u.l.nextraargs + nparams1; 1566 delta = ci->u.l.nextraargs + nparams1;
1567 /* close upvalues from current call */ 1567 /* close upvalues from current call */
1568 luaF_close(L, base, -1); /* (no to-be-closed vars. here) */ 1568 luaF_close(L, base, LUA_OK);
1569 updatestack(ci); 1569 updatestack(ci);
1570 } 1570 }
1571 if (!ttisfunction(s2v(ra))) { /* not a function? */ 1571 if (!ttisfunction(s2v(ra))) { /* not a function? */