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

Function luaopen_io

third-party/lua-5.5.0/src/liolib.c:832–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830
831
832LUAMOD_API int luaopen_io (lua_State *L) {
833 luaL_newlib(L, iolib); /* new module */
834 createmeta(L);
835 /* create (and set) default files */
836 createstdfile(L, stdin, IO_INPUT, "stdin");
837 createstdfile(L, stdout, IO_OUTPUT, "stdout");
838 createstdfile(L, stderr, NULL, "stderr");
839 return 1;
840}
841

Callers

nothing calls this directly

Calls 2

createmetaFunction · 0.70
createstdfileFunction · 0.70

Tested by

no test coverage detected