aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-03 18:41:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-03 18:41:05 -0200
commit6bb3e40a8d2cdb64a6ac1962d8748dd638a11721 (patch)
tree4b3e6753ff5da84af6a05d0bcdde1fe15101f6cb /ldo.c
parent7612f7735d32e298774d5379e847afb5e2a978ad (diff)
downloadlua-6bb3e40a8d2cdb64a6ac1962d8748dd638a11721.tar.gz
lua-6bb3e40a8d2cdb64a6ac1962d8748dd638a11721.tar.bz2
lua-6bb3e40a8d2cdb64a6ac1962d8748dd638a11721.zip
'lua_Debug' not using 'CallInfo'
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index 3b01c8fb..5cd518ef 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.166 2017/11/03 12:12:30 roberto Exp roberto $ 2** $Id: ldo.c,v 2.167 2017/11/03 17:22:54 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*/
@@ -253,14 +253,14 @@ void luaD_inctop (lua_State *L) {
253void luaD_hook (lua_State *L, int event, int line) { 253void luaD_hook (lua_State *L, int event, int line) {
254 lua_Hook hook = L->hook; 254 lua_Hook hook = L->hook;
255 if (hook && L->allowhook) { /* make sure there is a hook */ 255 if (hook && L->allowhook) { /* make sure there is a hook */
256 CallInfo *ci = L->ci;
257 ptrdiff_t top = savestack(L, L->top); 256 ptrdiff_t top = savestack(L, L->top);
258 int origframesize = L->func->stkci.framesize; 257 int origframesize = L->func->stkci.framesize;
259 int tmpframesize; /* frame size to run hook */ 258 int tmpframesize; /* frame size to run hook */
260 lua_Debug ar; 259 lua_Debug ar;
261 ar.event = event; 260 ar.event = event;
262 ar.currentline = line; 261 ar.currentline = line;
263 ar.i_ci = ci; 262 ar.i_actf = L->func - L->stack;
263 ar.i_actL = L;
264 luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */ 264 luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */
265 tmpframesize = L->top - L->func + LUA_MINSTACK; 265 tmpframesize = L->top - L->func + LUA_MINSTACK;
266 if (tmpframesize > origframesize) /* need to grow frame? */ 266 if (tmpframesize > origframesize) /* need to grow frame? */