MCPcopy Create free account
hub / github.com/DFHack/dfhack / tofile

Function tofile

depends/lua/src/liolib.c:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172
173
174static FILE *tofile (lua_State *L) {
175 LStream *p = tolstream(L);
176 if (isclosed(p))
177 luaL_error(L, "attempt to use a closed file");
178 lua_assert(p->f);
179 return p->f;
180}
181
182
183/*

Callers 9

f_closeFunction · 0.85
g_iofileFunction · 0.85
f_linesFunction · 0.85
io_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