summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-13 13:36:52 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-13 13:36:52 -0200
commit5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7 (patch)
tree6a54560da88065db590bf439c7af64fea88334bb /lstate.c
parent7d4828cc9fdc982ec713922777e77240892474e8 (diff)
downloadlua-5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7.tar.gz
lua-5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7.tar.bz2
lua-5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7.zip
using 'trap' to stop 'luaV_execute' when necessary (tracing and
to update its copy of 'base' when the stack is reallocated)
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 7f67527b..54e390b5 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.143 2017/10/31 17:54:35 roberto Exp $ 2** $Id: lstate.c,v 2.146 2017/11/07 13:25:26 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -103,6 +103,7 @@ CallInfo *luaE_extendCI (lua_State *L) {
103 L->ci->next = ci; 103 L->ci->next = ci;
104 ci->previous = L->ci; 104 ci->previous = L->ci;
105 ci->next = NULL; 105 ci->next = NULL;
106 ci->u.l.trap = 0;
106 L->nci++; 107 L->nci++;
107 return ci; 108 return ci;
108} 109}