aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-30 10:16:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-30 10:16:19 -0300
commit4c6afbcb01d1cae72d829af5301df5f592fa2079 (patch)
tree91047c8b1c19e9211438e9581239add4a6ccffbb /ldebug.c
parentf2206b2abe848f65956fa48da338c2bfac599e4a (diff)
downloadlua-4c6afbcb01d1cae72d829af5301df5f592fa2079.tar.gz
lua-4c6afbcb01d1cae72d829af5301df5f592fa2079.tar.bz2
lua-4c6afbcb01d1cae72d829af5301df5f592fa2079.zip
Struct 'transferinfo' moved to "lua_State"
That reduces the size of "CallInfo". Moreover, bit CIST_HOOKED from call status is not needed. When in a hook, 'transferinfo' is always valid, being zero when the hook is not call/return.
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index a3a536bb..9e341f11 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -364,11 +364,11 @@ static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar,
364 break; 364 break;
365 } 365 }
366 case 'r': { 366 case 'r': {
367 if (ci == NULL || !(ci->callstatus & CIST_TRAN)) 367 if (ci == NULL || !(ci->callstatus & CIST_HOOKED))
368 ar->ftransfer = ar->ntransfer = 0; 368 ar->ftransfer = ar->ntransfer = 0;
369 else { 369 else {
370 ar->ftransfer = ci->u2.transferinfo.ftransfer; 370 ar->ftransfer = L->transferinfo.ftransfer;
371 ar->ntransfer = ci->u2.transferinfo.ntransfer; 371 ar->ntransfer = L->transferinfo.ntransfer;
372 } 372 }
373 break; 373 break;
374 } 374 }