MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / tofile

Function tofile

deps/lua/src/liolib.c:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72static FILE *tofile (lua_State *L) {
73 FILE **f = tofilep(L);
74 if (*f == NULL)
75 luaL_error(L, "attempt to use a closed file");
76 return *f;
77}
78
79
80

Callers 8

io_closeFunction · 0.85
g_iofileFunction · 0.85
f_linesFunction · 0.85
f_readFunction · 0.85
f_writeFunction · 0.85
f_seekFunction · 0.85
f_setvbufFunction · 0.85
f_flushFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected