To-be-closed variables in the C API

This commit is contained in:
Roberto Ierusalimschy
2018-10-25 15:30:15 -03:00
parent 41c800b352
commit 34840301b5
6 changed files with 122 additions and 16 deletions

View File

@@ -1554,6 +1554,9 @@ static struct X { int x; } x;
int i = getindex;
return lua_yieldk(L1, nres, i, Cfunck);
}
else if EQ("tobeclosed") {
lua_tobeclosed(L);
}
else luaL_error(L, "unknown instruction %s", buff);
}
return 0;