From 5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 13 Nov 2017 13:36:52 -0200 Subject: using 'trap' to stop 'luaV_execute' when necessary (tracing and to update its copy of 'base' when the stack is reallocated) --- lstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 7f67527b..54e390b5 100644 --- a/lstate.c +++ b/lstate.c @@ -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; } -- cgit v1.2.3-55-g6feb