MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / aux_close

Function aux_close

extlibs/lua/src/liolib.c:202–207  ·  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

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