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.
This commit is contained in:
4
ldblib.c
4
ldblib.c
@@ -191,8 +191,10 @@ static int db_getinfo (lua_State *L) {
|
||||
settabsi(L, "ftransfer", ar.ftransfer);
|
||||
settabsi(L, "ntransfer", ar.ntransfer);
|
||||
}
|
||||
if (strchr(options, 't'))
|
||||
if (strchr(options, 't')) {
|
||||
settabsb(L, "istailcall", ar.istailcall);
|
||||
settabsi(L, "extraargs", ar.extraargs);
|
||||
}
|
||||
if (strchr(options, 'L'))
|
||||
treatstackoption(L, L1, "activelines");
|
||||
if (strchr(options, 'f'))
|
||||
|
||||
Reference in New Issue
Block a user