MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / aux_close

Function aux_close

lib/lua/src/liolib.c:214–219  ·  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

212** 32 bits).
213*/
214static int aux_close (lua_State *L) {
215 LStream *p = tolstream(L);
216 volatile lua_CFunction cf = p->closef;
217 p->closef = NULL; /* mark stream as closed */
218 return (*cf)(L); /* close it */
219}
220
221
222static 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