aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-04 17:27:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-04 17:27:13 -0300
commitbdc85357aa41a9610498232c2cffe7aa191e5cf6 (patch)
tree49acbe61a8c1f4dfaa36892ad01eba7cf56a78f4 /manual
parentb291008cc2a63eb19918d4cce7e58118f4154b03 (diff)
downloadlua-bdc85357aa41a9610498232c2cffe7aa191e5cf6.tar.gz
lua-bdc85357aa41a9610498232c2cffe7aa191e5cf6.tar.bz2
lua-bdc85357aa41a9610498232c2cffe7aa191e5cf6.zip
Bug: Active-lines for stripped vararg functions
Lua seg. faults when asked to create the 'activelines' table for a vararg function with no debug information.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of12
1 files changed, 6 insertions, 6 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 337731fe..4fbdbf31 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -8942,13 +8942,13 @@ The returned table can contain all the fields returned by @Lid{lua_getinfo},
8942with the string @id{what} describing which fields to fill in. 8942with the string @id{what} describing which fields to fill in.
8943The default for @id{what} is to get all information available, 8943The default for @id{what} is to get all information available,
8944except the table of valid lines. 8944except the table of valid lines.
8945If present, 8945The option @Char{f}
8946the option @Char{f}
8947adds a field named @id{func} with the function itself. 8946adds a field named @id{func} with the function itself.
8948If present, 8947The option @Char{L} adds a field named @id{activelines}
8949the option @Char{L} 8948with the table of valid lines,
8950adds a field named @id{activelines} with the table of 8949provided the function is a Lua function.
8951valid lines. 8950If the function has no debug information,
8951the table is empty.
8952 8952
8953For instance, the expression @T{debug.getinfo(1,"n").name} returns 8953For instance, the expression @T{debug.getinfo(1,"n").name} returns
8954a name for the current function, 8954a name for the current function,