aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-07-27 15:50:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-07-27 15:50:53 -0300
commit3d838f635cc81ec3332f9a904992db1c6d8a46ad (patch)
treefe2e9aa951d3e0dd464481697d4fb671bde70e65 /manual
parentaa4c5cf190f77ab2730af5e21cfd2b830ff329df (diff)
downloadlua-3d838f635cc81ec3332f9a904992db1c6d8a46ad.tar.gz
lua-3d838f635cc81ec3332f9a904992db1c6d8a46ad.tar.bz2
lua-3d838f635cc81ec3332f9a904992db1c6d8a46ad.zip
Added "emergency collection" to 'io.tmpfile' and 'os.tmpname'
These operations also can give errors for lack of resources, so they also will try "emergency collections" in case of resource errors. Because there are now two libraries with that kind of handling, 'resourcetryagain' was moved to the auxiliary library to be shared by the libraries.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of14
1 files changed, 14 insertions, 0 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 659daa55..5a8b1b2c 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -5538,6 +5538,20 @@ Leaves a copy of the module on the stack.
5538 5538
5539} 5539}
5540 5540
5541@APIEntry{int luaL_resourcetryagain (lua_State *L);|
5542@apii{0,0,m}
5543
5544Try to release resources in case of errors.
5545This function uses @id{errno} to check whether the last error was
5546related to lack of resources (e.g., not enough memory or too many
5547open files).
5548If so, the function performs a full garbage collection
5549to try to release resources, and then it returns 1 to signal to
5550the caller that it is worth trying again the failed operation.
5551Otherwise, it returns 0.
5552
5553}
5554
5541@APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);| 5555@APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);|
5542@apii{nup,0,m} 5556@apii{nup,0,m}
5543 5557