diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-06-08 12:14:04 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-06-08 12:14:04 -0300 |
commit | cc2a60ecb7e4c57ed31e5c5c3f49d8dc7447acc5 (patch) | |
tree | bd702ddf14ba4e1b57959bf978ec062f03ad861f /lapi.c | |
parent | 43bfb60ac8add40a6099b933bc8454c11471c386 (diff) | |
download | lua-cc2a60ecb7e4c57ed31e5c5c3f49d8dc7447acc5.tar.gz lua-cc2a60ecb7e4c57ed31e5c5c3f49d8dc7447acc5.tar.bz2 lua-cc2a60ecb7e4c57ed31e5c5c3f49d8dc7447acc5.zip |
bugs in yields inside debug hooks
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.162 2012/05/22 17:50:39 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.163 2012/05/23 15:42:27 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 | */ |
@@ -950,7 +950,7 @@ LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, | |||
950 | ci->u.c.k = k; /* save continuation */ | 950 | ci->u.c.k = k; /* save continuation */ |
951 | ci->u.c.ctx = ctx; /* save context */ | 951 | ci->u.c.ctx = ctx; /* save context */ |
952 | /* save information for error recovery */ | 952 | /* save information for error recovery */ |
953 | ci->u.c.extra = savestack(L, c.func); | 953 | ci->extra = savestack(L, c.func); |
954 | ci->u.c.old_allowhook = L->allowhook; | 954 | ci->u.c.old_allowhook = L->allowhook; |
955 | ci->u.c.old_errfunc = L->errfunc; | 955 | ci->u.c.old_errfunc = L->errfunc; |
956 | L->errfunc = func; | 956 | L->errfunc = func; |