summaryrefslogtreecommitdiff
path: root/lauxlib.h
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 /lauxlib.h
parentaa4c5cf190f77ab2730af5e21cfd2b830ff329df (diff)
downloadlua-github-3d838f635cc81ec3332f9a904992db1c6d8a46ad.tar.gz
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 'lauxlib.h')
-rw-r--r--lauxlib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 9f91f6a6..cd4d01e5 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
/*
-** $Id: lauxlib.h,v 1.133 2017/06/27 18:32:49 roberto Exp roberto $
+** $Id: lauxlib.h $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -77,6 +77,9 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def,
LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname);
LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
+LUALIB_API int (luaL_resourcetryagain) (lua_State *L);
+
+
/* predefined references */
#define LUA_NOREF (-2)
#define LUA_REFNIL (-1)