MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / io_tmpfile

Function io_tmpfile

third-party/lua-5.5.0/src/liolib.c:302–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301
302static int io_tmpfile (lua_State *L) {
303 LStream *p = newfile(L);
304 errno = 0;
305 p->f = tmpfile();
306 return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1;
307}
308
309
310static FILE *getiofile (lua_State *L, const char *findex) {

Callers

nothing calls this directly

Calls 2

newfileFunction · 0.70
luaL_fileresultFunction · 0.70

Tested by

no test coverage detected