Allow C functions to yield (unforseen consequences be damned)
This commit is contained in:
parent
76bea81a7b
commit
d0b9ad3c48
|
@ -298,7 +298,7 @@ static void resume_continue(lua_State* L)
|
|||
int n = cl->c.cont(L, 0);
|
||||
|
||||
// Continuation can break again
|
||||
if (L->status == LUA_BREAK)
|
||||
if (L->status == LUA_BREAK || L->status == LUA_YIELD)
|
||||
break;
|
||||
|
||||
luau_poscall(L, L->top - n);
|
||||
|
|
Loading…
Reference in New Issue