MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / io_tmpfile

Function io_tmpfile

src/Chain/libraries/glua/liolib.cpp:279–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279static int io_tmpfile(lua_State *L) {
280 LStream *p = newfile(L);
281 p->f = tmpfile();
282 return (p->f == nullptr) ? luaL_fileresult(L, 0, nullptr) : 1;
283}
284
285
286static FILE *getiofile(lua_State *L, const char *findex) {

Callers

nothing calls this directly

Calls 2

newfileFunction · 0.85
luaL_fileresultFunction · 0.85

Tested by

no test coverage detected