diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.106 2009/12/22 15:32:50 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.107 2009/12/22 16:47:00 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -835,6 +835,8 @@ LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, | |||
835 | int status; | 835 | int status; |
836 | ptrdiff_t func; | 836 | ptrdiff_t func; |
837 | lua_lock(L); | 837 | lua_lock(L); |
838 | api_check(L, k == NULL || !isLua(L->ci), | ||
839 | "cannot use continuations inside hooks"); | ||
838 | api_checknelems(L, nargs+1); | 840 | api_checknelems(L, nargs+1); |
839 | checkresults(L, nargs, nresults); | 841 | checkresults(L, nargs, nresults); |
840 | if (errfunc == 0) | 842 | if (errfunc == 0) |