aboutsummaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-11-19 14:09:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-11-19 14:09:18 -0300
commit50c7c915ee2fa239043d5456237f5145d064089b (patch)
tree386e17e4baa154bb60dc54c1a00c751e3adedde9 /ldblib.c
parentb117bdb3448778d9e7f9a0302791e8ac3bb97ddd (diff)
downloadlua-50c7c915ee2fa239043d5456237f5145d064089b.tar.gz
lua-50c7c915ee2fa239043d5456237f5145d064089b.tar.bz2
lua-50c7c915ee2fa239043d5456237f5145d064089b.zip
Debug information about extra arguments from __call
'debug.getinfo' can return number of extra arguments added to a call by a chain of __call metavalues. That information is being used to improve error messages about errors in these extra arguments.
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldblib.c b/ldblib.c
index a0a06dd7..c7b74812 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -191,8 +191,10 @@ static int db_getinfo (lua_State *L) {
191 settabsi(L, "ftransfer", ar.ftransfer); 191 settabsi(L, "ftransfer", ar.ftransfer);
192 settabsi(L, "ntransfer", ar.ntransfer); 192 settabsi(L, "ntransfer", ar.ntransfer);
193 } 193 }
194 if (strchr(options, 't')) 194 if (strchr(options, 't')) {
195 settabsb(L, "istailcall", ar.istailcall); 195 settabsb(L, "istailcall", ar.istailcall);
196 settabsi(L, "extraargs", ar.extraargs);
197 }
196 if (strchr(options, 'L')) 198 if (strchr(options, 'L'))
197 treatstackoption(L, L1, "activelines"); 199 treatstackoption(L, L1, "activelines");
198 if (strchr(options, 'f')) 200 if (strchr(options, 'f'))