diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-12 16:07:30 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-12 16:07:30 -0300 |
commit | fa3113ffbf4455871baf1d1d9d48679a17e6f3e5 (patch) | |
tree | ea9c4c8ba1427b1e6483a7fc4a448760585ae815 /ldo.c | |
parent | d94bb6c273d05005504be78f2caab2451aeb2cee (diff) | |
download | lua-fa3113ffbf4455871baf1d1d9d48679a17e6f3e5.tar.gz lua-fa3113ffbf4455871baf1d1d9d48679a17e6f3e5.tar.bz2 lua-fa3113ffbf4455871baf1d1d9d48679a17e6f3e5.zip |
cleaner way to handle bit CIST_OAH (with auxiliar macros)
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.120 2014/06/10 19:18:50 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.121 2014/06/11 16:01:55 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 | */ |
@@ -492,7 +492,7 @@ static int recover (lua_State *L, int status) { | |||
492 | luaF_close(L, oldtop); | 492 | luaF_close(L, oldtop); |
493 | seterrorobj(L, status, oldtop); | 493 | seterrorobj(L, status, oldtop); |
494 | L->ci = ci; | 494 | L->ci = ci; |
495 | L->allowhook = (ci->callstatus & CIST_OAH); | 495 | L->allowhook = getoah(ci->callstatus); /* restore original 'allowhook' */ |
496 | L->nny = 0; /* should be zero to be yieldable */ | 496 | L->nny = 0; /* should be zero to be yieldable */ |
497 | luaD_shrinkstack(L); | 497 | luaD_shrinkstack(L); |
498 | L->errfunc = ci->u.c.old_errfunc; | 498 | L->errfunc = ci->u.c.old_errfunc; |