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

Function luaopen_io

third-party/lua-5.2.4/src/liolib.c:657–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657LUAMOD_API int luaopen_io (lua_State *L) {
658 luaL_newlib(L, iolib); /* new module */
659 createmeta(L);
660 /* create (and set) default files */
661 createstdfile(L, stdin, IO_INPUT, "stdin");
662 createstdfile(L, stdout, IO_OUTPUT, "stdout");
663 createstdfile(L, stderr, NULL, "stderr");
664 return 1;
665}
666

Callers

nothing calls this directly

Calls 2

createmetaFunction · 0.70
createstdfileFunction · 0.70

Tested by

no test coverage detected