diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -705,9 +705,10 @@ LUA_API int lua_isyieldable (lua_State *L) { | |||
705 | 705 | ||
706 | LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, | 706 | LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, |
707 | lua_KFunction k) { | 707 | lua_KFunction k) { |
708 | CallInfo *ci = L->ci; | 708 | CallInfo *ci; |
709 | luai_userstateyield(L, nresults); | 709 | luai_userstateyield(L, nresults); |
710 | lua_lock(L); | 710 | lua_lock(L); |
711 | ci = L->ci; | ||
711 | api_checknelems(L, nresults); | 712 | api_checknelems(L, nresults); |
712 | if (unlikely(!yieldable(L))) { | 713 | if (unlikely(!yieldable(L))) { |
713 | if (L != G(L)->mainthread) | 714 | if (L != G(L)->mainthread) |