diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.134 2014/11/10 17:42:04 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.135 2014/11/11 17:13:39 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -619,7 +619,7 @@ LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, | |||
619 | L->status = LUA_YIELD; | 619 | L->status = LUA_YIELD; |
620 | ci->extra = savestack(L, ci->func); /* save current 'func' */ | 620 | ci->extra = savestack(L, ci->func); /* save current 'func' */ |
621 | if (isLua(ci)) { /* inside a hook? */ | 621 | if (isLua(ci)) { /* inside a hook? */ |
622 | api_check(k == NULL, "hooks cannot continue after yielding"); | 622 | api_check(L, k == NULL, "hooks cannot continue after yielding"); |
623 | } | 623 | } |
624 | else { | 624 | else { |
625 | if ((ci->u.c.k = k) != NULL) /* is there a continuation? */ | 625 | if ((ci->u.c.k = k) != NULL) /* is there a continuation? */ |