MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / getiofile

Function getiofile

third-party/lua-5.3.5/src/liolib.c:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292
293static FILE *getiofile (lua_State *L, const char *findex) {
294 LStream *p;
295 lua_getfield(L, LUA_REGISTRYINDEX, findex);
296 p = (LStream *)lua_touserdata(L, -1);
297 if (isclosed(p))
298 luaL_error(L, "standard %s file is closed", findex + IOPREF_LEN);
299 return p->f;
300}
301
302
303static int g_iofile (lua_State *L, const char *f, const char *mode) {

Callers 3

io_readFunction · 0.70
io_writeFunction · 0.70
io_flushFunction · 0.70

Calls 3

lua_getfieldFunction · 0.70
lua_touserdataFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected