MCPcopy Create free account
hub / github.com/defold/defold / io_tmpfile

Function io_tmpfile

engine/lua/src/lua/liolib.c:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183static int io_tmpfile (lua_State *L) {
184#if defined(LUA_NO_TMPFILE) // DEFOLD
185 return 0;
186#else
187 FILE **pf = newfile(L);
188 *pf = tmpfile();
189 return (*pf == NULL) ? pushresult(L, 0, NULL) : 1;
190#endif
191}
192
193
194static FILE *getiofile (lua_State *L, int findex) {

Callers

nothing calls this directly

Calls 2

newfileFunction · 0.85
pushresultFunction · 0.85

Tested by

no test coverage detected