aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-06 16:49:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-06 16:49:50 -0300
commita30c66f0fc17bf733c2289a0d7a76930dac80f47 (patch)
tree96d7e5fff8245da7540d14818adc28f420036b26 /ldo.c
parentbb4baa73ea85c0fd49ab2ab96f0f174cd131830a (diff)
downloadlua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.tar.gz
lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.tar.bz2
lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.zip
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index 35c3a5cc..ffe9a8da 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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? */