diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-27 15:50:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-27 15:50:53 -0300 |
commit | 3d838f635cc81ec3332f9a904992db1c6d8a46ad (patch) | |
tree | fe2e9aa951d3e0dd464481697d4fb671bde70e65 /lauxlib.h | |
parent | aa4c5cf190f77ab2730af5e21cfd2b830ff329df (diff) | |
download | lua-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 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.133 2017/06/27 18:32:49 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -77,6 +77,9 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def, | |||
77 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); | 77 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); |
78 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); | 78 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); |
79 | 79 | ||
80 | LUALIB_API int (luaL_resourcetryagain) (lua_State *L); | ||
81 | |||
82 | |||
80 | /* predefined references */ | 83 | /* predefined references */ |
81 | #define LUA_NOREF (-2) | 84 | #define LUA_NOREF (-2) |
82 | #define LUA_REFNIL (-1) | 85 | #define LUA_REFNIL (-1) |