using 'trap' to stop 'luaV_execute' when necessary (tracing and

to update its copy of 'base' when the stack is reallocated)
This commit is contained in:
Roberto Ierusalimschy
2017-11-13 13:36:52 -02:00
parent 7d4828cc9f
commit 5440b42f43
5 changed files with 67 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.143 2017/10/31 17:54:35 roberto Exp $
** $Id: lstate.c,v 2.146 2017/11/07 13:25:26 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -103,6 +103,7 @@ CallInfo *luaE_extendCI (lua_State *L) {
L->ci->next = ci;
ci->previous = L->ci;
ci->next = NULL;
ci->u.l.trap = 0;
L->nci++;
return ci;
}