LUA_OK
res = (luaD_rawrunprotected(L, &growstack, &size) == LUA_OK);
else return LUA_OK;
api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread");
api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread");
status = LUA_OK; /* if it is here, there were no errors */
if (status == LUA_OK) { /* no errors? */
case LUA_OK: {
if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) {
if (status == LUA_OK || status == LUA_YIELD) {
lj.status = LUA_OK;
lua_assert(ci->u.c.status != LUA_OK);
if (L->status == LUA_OK) { /* may be starting a coroutine */
L->status = LUA_OK;
api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs);
while (status != LUA_OK && status != LUA_YIELD) { /* error? */
if (status != LUA_OK) { /* an error occurred? */
if (status != LUA_OK && propagateerrors) { /* error while running __gc? */
L->status = LUA_OK;
if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) {
case LUA_OK: {