aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-07-22 13:43:40 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-07-22 13:43:40 -0300
commitd5bbe955840c5c83e37ed19df4d392d7ba0970ed (patch)
tree35977691aabb3a65e96508d4277c2067991ee4e3 /manual
parent9130ceb19d324472d135e8e644a01e8b16334c31 (diff)
downloadlua-d5bbe955840c5c83e37ed19df4d392d7ba0970ed.tar.gz
lua-d5bbe955840c5c83e37ed19df4d392d7ba0970ed.tar.bz2
lua-d5bbe955840c5c83e37ed19df4d392d7ba0970ed.zip
Details
- Some api_checknelems changed to the more restrict api_checkpop. - Added a class to the html for APIs in the manual. - Comments and manual.
Diffstat (limited to 'manual')
-rwxr-xr-xmanual/2html7
-rw-r--r--manual/manual.of10
2 files changed, 13 insertions, 4 deletions
diff --git a/manual/2html b/manual/2html
index 243f3f22..23f37ac6 100755
--- a/manual/2html
+++ b/manual/2html
@@ -58,7 +58,7 @@ end
58 58
59local function compose (f,g) 59local function compose (f,g)
60 assert(f and g) 60 assert(f and g)
61 return function (s) return g(f(s)) end 61 return function (...) return g(f(...)) end
62end 62end
63 63
64local function concat (f, g) 64local function concat (f, g)
@@ -395,9 +395,10 @@ APIEntry = function (e)
395 local apiicmd, ne = string.match(e, "^(.-</span>)(.*)") 395 local apiicmd, ne = string.match(e, "^(.-</span>)(.*)")
396--io.stderr:write(e) 396--io.stderr:write(e)
397 if not apiicmd then 397 if not apiicmd then
398 return antipara(Tag.hr() .. Tag.h3(a)) .. Tag.pre(h) .. e 398 return antipara(Tag.hr() .. Tag.h3(a)) .. Tag.pre(h, {class="api"}) .. e
399 else 399 else
400 return antipara(Tag.hr() .. Tag.h3(a)) .. apiicmd .. Tag.pre(h) .. ne 400 return antipara(Tag.hr() .. Tag.h3(a)) .. apiicmd ..
401 Tag.pre(h, {class="api"}) .. ne
401 end 402 end
402end, 403end,
403 404
diff --git a/manual/manual.of b/manual/manual.of
index 426ad453..e2d1a651 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -1728,7 +1728,7 @@ global X <const>, _G
1728X = 1 -- ERROR 1728X = 1 -- ERROR
1729_ENV.X = 1 -- Ok 1729_ENV.X = 1 -- Ok
1730_G.print(X) -- Ok 1730_G.print(X) -- Ok
1731foo() -- 'foo' can freely change any global 1731foo() -- 'foo' can freely change any global
1732} 1732}
1733 1733
1734A chunk is also a block @see{chunks}, 1734A chunk is also a block @see{chunks},
@@ -6071,6 +6071,14 @@ In both cases,
6071the function pushes onto the stack the final value associated 6071the function pushes onto the stack the final value associated
6072with @id{tname} in the registry. 6072with @id{tname} in the registry.
6073 6073
6074Usage note: Beware the use of the return value of this function to
6075conditionally initializes the new metatable
6076(e.g., by adding metamethods to it).
6077If the initialization raises an error,
6078the metatable will not be properly initialized,
6079but a subsequent execution of that code will detect that the
6080metatable already exists and then skip the initialization.
6081
6074} 6082}
6075 6083
6076@APIEntry{lua_State *luaL_newstate (void);| 6084@APIEntry{lua_State *luaL_newstate (void);|