MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaopen_io

Function luaopen_io

3rd/lua-5.4.3/src/liolib.c:819–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817
818
819LUAMOD_API int luaopen_io (lua_State *L) {
820 luaL_newlib(L, iolib); /* new module */
821 createmeta(L);
822 /* create (and set) default files */
823 createstdfile(L, stdin, IO_INPUT, "stdin");
824 createstdfile(L, stdout, IO_OUTPUT, "stdout");
825 createstdfile(L, stderr, NULL, "stderr");
826 return 1;
827}
828

Callers

nothing calls this directly

Calls 2

createmetaFunction · 0.85
createstdfileFunction · 0.85

Tested by

no test coverage detected