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

Function aux_close

depends/lua/src/liolib.c:201–206  ·  view source on GitHub ↗

** Calls the 'close' function from a file handle. The 'volatile' avoids ** a bug in some versions of the Clang compiler (e.g., clang 3.0 for ** 32 bits). */

Source from the content-addressed store, hash-verified

199** 32 bits).
200*/
201static int aux_close (lua_State *L) {
202 LStream *p = tolstream(L);
203 volatile lua_CFunction cf = p->closef;
204 p->closef = NULL; /* mark stream as closed */
205 return (*cf)(L); /* close it */
206}
207
208
209static int f_close (lua_State *L) {

Callers 3

f_closeFunction · 0.85
f_gcFunction · 0.85
io_readlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected