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

Function io_close

deps/lua/src/liolib.c:134–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134static int io_close (lua_State *L) {
135 if (lua_isnone(L, 1))
136 lua_rawgeti(L, LUA_ENVIRONINDEX, IO_OUTPUT);
137 tofile(L); /* make sure argument is a file */
138 return aux_close(L);
139}
140
141
142static 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