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

Function io_close

depends/lua/src/liolib.c:215–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214
215static int io_close (lua_State *L) {
216 if (lua_isnone(L, 1)) /* no argument? */
217 lua_getfield(L, LUA_REGISTRYINDEX, IO_OUTPUT); /* use standard output */
218 return f_close(L);
219}
220
221
222static int f_gc (lua_State *L) {

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.85
f_closeFunction · 0.85

Tested by

no test coverage detected