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

Function getiofile

Source/Misc/lua/src/lua.c:12104–12111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12102
12103
12104static FILE *getiofile (lua_State *L, int findex) {
12105FILE *f;
12106lua_rawgeti(L, LUA_ENVIRONINDEX, findex);
12107f = *(FILE **)lua_touserdata(L, -1);
12108if (f == NULL)
12109luaL_error(L, "standard %s file is closed", fnames[findex - 1]);
12110return f;
12111}
12112
12113
12114static int g_iofile (lua_State *L, int f, const char *mode) {

Callers 3

io_readFunction · 0.85
io_writeFunction · 0.85
io_flushFunction · 0.85

Calls 3

lua_rawgetiFunction · 0.85
lua_touserdataFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected