MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / io_close

Function io_close

Source/Misc/lua/src/lua.c:12048–12053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12046
12047
12048static int io_close (lua_State *L) {
12049if (lua_isnone(L, 1))
12050lua_rawgeti(L, LUA_ENVIRONINDEX, IO_OUTPUT);
12051tofile(L); /* make sure argument is a file */
12052return aux_close(L);
12053}
12054
12055
12056static int io_gc (lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_rawgetiFunction · 0.85
tofileFunction · 0.85
aux_closeFunction · 0.85

Tested by

no test coverage detected