MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / os_tmpname

Function os_tmpname

lua/src/loslib.c:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169static int os_tmpname (lua_State *L) {
170 char buff[LUA_TMPNAMBUFSIZE];
171 int err;
172 lua_tmpnam(buff, err);
173 if (l_unlikely(err))
174 return luaL_error(L, "unable to generate a unique filename");
175 lua_pushstring(L, buff);
176 return 1;
177}
178
179
180static int os_getenv (lua_State *L) {

Callers

nothing calls this directly

Calls 2

luaL_errorFunction · 0.85
lua_pushstringFunction · 0.85

Tested by

no test coverage detected